[rspec-users] How to mock when there seems to be a requirement for chained mocked calls?

S Ahmed sahmed1020 at gmail.com
Mon Jun 13 21:29:14 EDT 2011

I want to mock the following:


I tried:


but this of course doesn't match the expectation since the call to .last was
not mapped in the mock code.

How can I do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110613/9f18040a/attachment.html>

More information about the rspec-users mailing list