search for: test_expectation_count

Displaying 1 result from an estimated 1 matches for "test_expectation_count".

2007 Jul 04
0
Fwd: [ mocha-Bugs-12001 ] Method call count is not reported correctly on error
...on (romuloceccon) Assigned to: Nobody (None) Summary: Method call count is not reported correctly on error Initial Comment: Given a file containing the following: require ''test/unit'' require ''mocha'' class TestMocha < Test::Unit::TestCase def test_expectation_count m = mock m.expects(:test) m.test m.test # fails end end mocha fails on the second call to ''m.test'' with the message: #<Mock:0x2e7c280>.test() - expected calls: 0, actual calls: 1 Similar expectations: test I would expec...