Sha256: 78467ce34eb26bec378d821151dff49436fa1611c1f77e324a29c3ad03a42130
Contents?: true
Size: 352 Bytes
Versions: 15
Compression:
Stored size: 352 Bytes
Contents
require File.join(File.dirname(File.expand_path(__FILE__)), "/../spec_helper.rb") describe NestedError do it "should preserve the cause" do e = NestedError.new("nested message", TypeError.new("cause message")) e.message.should == "nested message" e.cause.class.should == TypeError e.cause.message.should == "cause message" end end
Version data entries
15 entries across 15 versions & 2 rubygems