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: 261
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