[rspec-users] mock syntax order
Paul W Pagel
ppagel at 8thLight.com
Fri Nov 10 18:11:25 EST 2006
I have the following statement
mock_requester.should_receive(:request_with).with
("x").any_number_of_times.and_return(@object)
which works fine, but when i do it backwards, which makes the same
amount of sense syntactically, it fails
mock_requester.should_receive(:request_with).with("x").and_return
(@object).any_number_of_times
are all of the mock options deterministic? Can they be interchangeable?
Paul W Pagel
www.8thLight.com
blog.8thLight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061110/77a8e3be/attachment.html
More information about the rspec-users
mailing list