Need help mocking this out

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!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs