Displaying 1 result from an estimated 1 matches for "second_object".
2006 Aug 15
0
Mocha - dynamic method calling
...test case for this if you need one, but it will take me a
> while. I''m being bull dozed with work right now. (Who isn''t ?)
Hmm. Can you come up with a simple test that fails in this way? I tried this
test and it works fine...
def test_passes
first_object = mock()
second_object = mock()
first_object.expects(:first_method).with(second_object)
first_object.first_method(second_object)
end
> Thanks for the prompt response and for cleaning up my comments. I don''t
> do a lot of posting actually, I''ll have to get familiar with textile.
No pro...