search for: wrong_arg

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

Did you mean: long_arg
2006 Oct 25
2
mock parameter problem
Here''s another one. spec: m = mock("blah") m.should_receive(:foo).with(1) code: m.foo(2) Failure message: Mock ''blah'' expected ''foo'' once, but received it 0 times ------ Twice now I''ve gotten this failure message and wasted time trying to understand why the method foo() was not being called despite all evidence suggesting