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

Version Path
automate-it-0.9.2 spec/unit/nested_error_spec.rb
automate-it-0.9.1 spec/unit/nested_error_spec.rb
automate-it-0.9.0 spec/unit/nested_error_spec.rb
automateit-0.71103 spec/unit/nested_error_spec.rb
automateit-0.71104 spec/unit/nested_error_spec.rb
automateit-0.71220 spec/unit/nested_error_spec.rb
automateit-0.71221 spec/unit/nested_error_spec.rb
automateit-0.71112 spec/unit/nested_error_spec.rb
automateit-0.71111 spec/unit/nested_error_spec.rb
automateit-0.71219 spec/unit/nested_error_spec.rb
automateit-0.71226.1 spec/unit/nested_error_spec.rb
automateit-0.71226 spec/unit/nested_error_spec.rb
automateit-0.71230 spec/unit/nested_error_spec.rb
automateit-0.80624 spec/unit/nested_error_spec.rb
automateit-0.80116 spec/unit/nested_error_spec.rb