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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to