spec/ratchetio_spec.rb in ratchetio-0.4.5 vs spec/ratchetio_spec.rb in ratchetio-0.4.6
- old
+ new
@@ -186,11 +186,11 @@
end
end
# should be NameError, but can be NoMethodError sometimes on rubinius 1.8
# http://yehudakatz.com/2010/01/02/the-craziest-fing-bug-ive-ever-seen/
- trace[:exception][:class].should match(/NameError|NoMethodError/)
- trace[:exception][:message].should match(/^undefined local variable or method `bar'/)
+ trace[:exception][:class].should match(/^(NameError|NoMethodError)$/)
+ trace[:exception][:message].should match(/^(undefined local variable or method `bar'|undefined method `bar' on an instance of)/)
end
end
context 'logger' do
before(:each) do