[rspec-users] should_receive with block or proc?
Alexander Baronec
abonec at gmail.com
Sat Aug 4 17:46:03 UTC 2012
Hello.
How can I test object to receive message and compare arguments of this
message with value evaluated at present time? It is possible?
For example:
should_receive(:api_send).with( -> { players.count } ) And players.count
will be called and evaluated only when api_send is received.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120804/650589f5/attachment.html>
More information about the rspec-users
mailing list