[rspec-users] Does a mock model have to satisfy contraints

Chris Olsen lists at ruby-forum.com
Tue Oct 16 13:08:27 EDT 2007

That is what I thought (and was hoping for)

Thanks David.

> This is a bit tricky. What you're setting up here (which is true of
> message expectations in general, not must mock_model) is an
> expectation that @site will receive the message :save and that when it
> does receive it, you are instructing it to return true (not expecting
> that the real :save method returns true).
> The real :save method is not called.
> Make sense?

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list