[rspec-users] Need help mocking this out

Fischer, Daniel daniel at danielfischer.com
Mon Dec 3 04:58:16 EST 2007

Let's say you're using the restful_authentication plugin.
You have a model called articles. On the index action of the
articlescontroller you simply want to spec out that it'll scope the results
to the ownership of the current_user.

It should NOT include any articles other than the articles that user owns.

How would you properly spec this out?

Thanks for the help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071203/362a4bab/attachment.html 

More information about the rspec-users mailing list