should_receive in RSpec

Posted by gmile on Stack Overflow See other posts from Stack Overflow or by gmile
Published on 2010-04-21T09:30:21Z Indexed on 2010/04/21 9:33 UTC
Read the original article Hit count: 264

Filed under:
|
|
|
|

As far as I know, should_receive is applied only to mock objects. What I want is to check, if a certain Class (not object) received a certain message, like:

User.should_receive(:all).once

How do I do that?

© Stack Overflow or respective owner

Related posts about rspec

Related posts about rails