[rspec-users] How to return a value passed by ref to a method

Remi Gagnon rem.gagnon at gmail.com
Sun Feb 8 07:48:21 EST 2009


Hi,

I have a recursive method and I want to mock a var passed by ref.
Object.should_receive(:my_method).and_return"by_ref"(@value)

Something like that.

Any idea?

Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090208/4e00e9c2/attachment.html>


More information about the rspec-users mailing list