rspec/rspec-rails — pull request #464 by yakko (2011-11-17 23:02:22+00:00)
Title: Please accept my suggestion for testing controllers with restricted access

I have set up a project demonstrating the functionality I'm proposing.

https://github.com/yakko/yakko_rspec_demo
git@github.com:yakko/yakko_rspec_demo.git

Lots of times you have a controller that requires the user to be logged in.
This causes tests to fail and the developer needs to customize it in 17 places,
witch due to beautiful hashes without curly brackets, makes it a harder process.

My proposition is to make it as easy as the valid_attributes method proposition already contained in this file.

Glad to help,
Thiago Almeida.