On Monday, February 11, 2013 1:00:25 PM UTC-8, [email protected] wrote:

> x.should_receive(:foo).and_return(:a_reasonable_value)
>

If the code will fail without specifying that return value, then you didn't 
need to mock in the first place.

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rspec/-/tKlKsBnFNSUJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to