[rspec-users] Surprising mock behavior
Nick Hoffman
nick at deadorange.com
Fri Oct 17 15:14:18 EDT 2008
On 2008-10-17, at 14:55, Mark Thomson wrote:
> ..snip..
> It seems as if "should_receive" is queuing up the messages that come
> into the file object and when it tests an expectation it just looks
> at the next one in line. If it doesn't match then the expectation
> will fail.
Hi Mark. From my understanding and experiences with RSpec, that's
correct behaviour. Essentially, you're defining an ordered list of
messages you expect to be called on the 'file' object.
Cheers,
Nick
More information about the rspec-users
mailing list