test/mocha/mock_methods_test.rb in mocha-0.3.1 vs test/mocha/mock_methods_test.rb in mocha-0.3.2
- old
+ new
@@ -136,10 +136,10 @@
def test_should_report_possible_expectations
mock = Object.new.extend(MockMethods)
mock.expects(:meth).with(1)
exception = assert_raise(Test::Unit::AssertionFailedError) { mock.meth(2) }
- assert_equal "Unexpected message :meth(2)\nSimilar expectations :meth(1)", exception.message
+ assert_equal "Unexpected message :meth(2) sent to #{mock.mocha_inspect}\nSimilar expectations :meth(1)", exception.message
end
def test_should_pass_block_through_to_expectations_verify_method
mock = Object.new
mock.extend(MockMethods)
\ No newline at end of file