[rspec-users] checking order of method calls on different mocks
dchelimsky at gmail.com
Thu Jan 27 22:20:32 EST 2011
On Jan 26, 2011, at 10:07 AM, Fregas wrote:
> I have a spec where I need to check that the order of 2 method calls
> to 2 different mocks is correct:
Don't think it's related, but receive is misspelled here ^^.
> however this does not work. I can set order.customer_id at the
> beginning, before save and id are called and the spec passes.
Ordering does not work across objects. Does this really need to happen in order? What's the real requirement you're trying to express (not how the code is doing it, but what's supposed to happen at a high level)?
More information about the rspec-users