[rspec-users] Need help mocking this out
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...
More information about the rspec-users