[rspec-users] find_all_by returning nil

Craig Demyanovich cdemyanovich at gmail.com
Mon Aug 11 14:31:28 EDT 2008


Looks like this line

Product.stub(!find_all_by_category_id).with(anything()).and_return([product])

might be the culprit. It should be stub!(find... instead of stub(!find....

Regards,
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080811/8dce641b/attachment.html>


More information about the rspec-users mailing list