[rspec-users] Need help mocking this out
Fischer, Daniel
daniel at helpmebuyacar.org
Mon Dec 3 04:57:35 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/1d33f697/attachment.html
More information about the rspec-users
mailing list