[rspec-users] should_receive

Steve vertebrate at gmail.com
Wed Oct 17 01:04:52 EDT 2007

Is there any way to setup a should_receive so that it returns whatever it
was passed in from the actual code? I just want to make sure that a
specific function is called, I don't want to mess around with the
parameters it receives, or what it does inside, or what it returns. Is
that possible? Using should_receive seems to default to returning nil.

More information about the rspec-users mailing list