test/unit/mock_test.rb in mocha-0.5.0 vs test/unit/mock_test.rb in mocha-0.5.1

- old
+ new

@@ -145,13 +145,13 @@ def test_should_raise_assertion_error_for_unexpected_method_call mock = Mock.new error = assert_raise(ExpectationError) do mock.unexpected_method_called(:my_method, :argument1, :argument2) end - assert_match /my_method/, error.message - assert_match /argument1/, error.message - assert_match /argument2/, error.message + assert_match(/my_method/, error.message) + assert_match(/argument1/, error.message) + assert_match(/argument2/, error.message) end def test_should_indicate_unexpected_method_called mock = Mock.new class << mock @@ -342,10 +342,10 @@ mock.responds_like(instance) mock.stubs(:invoked_method) begin mock.invoked_method rescue NoMethodError => e - assert_match /which responds like mocha_inspect/, e.message + assert_match(/which responds like mocha_inspect/, e.message) end end end \ No newline at end of file