rspec/rspec-rails — pull request #611 by alindeman (2012-09-24 20:07:15+00:00)
Title: Scaffolded controller specs are compatible with Rails 4

* Rails 4 introduces
[strong_parameters](https://github.com/rails/strong_parameters).
* If a model is scaffolded with attributes (e.g., `rails generate
scaffold foo bar:string`), Rails will generate a controller that only
accepts `bar`. This means that the controller spec must be aware of
the specific parameters when sending PUT (update) requests.
* Furthermore if a model is scaffolded with attributes, Rails generates
a controller that *requires* the #presence of attributes. This means
we cannot send in an empty Hash, as the Rails framework will return a
400 Bad Request.

I added a few new specs, but mostly I considered this a 'bugfix' as cukes were already red against Rails master. This commit fixes them, while keeping earlier versions green.

It does change the content of the scaffolded controller specs, but I couldn't find any other way to satisfy the above constraints.

Let me know what you think, thanks!