test/unit/mock_test.rb in bourne-1.3.2 vs test/unit/mock_test.rb in bourne-1.4.0

- old
+ new

@@ -338,12 +338,11 @@ end class FakeExpectation attr_reader :args - def invoke(args) - @args = args + def invoke end def match?(*args) true end @@ -358,10 +357,9 @@ args = [1, 2] mock = Mock.new(method) expectation = FakeExpectation.new mock.__expectations__.add expectation mock.send(method, *args) - assert_equal args, expectation.args end private def build_mock