Displaying 1 result from an estimated 1 matches for "testmocha".
2007 Jul 04
0
Fwd: [ mocha-Bugs-12001 ] Method call count is not reported correctly on error
...None
Priority: 3
Submitted By: Romulo A. Ceccon (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...