rspec/rspec-rails — pull request #1010 by andyw8 (2014-04-26 11:52:14+00:00)
Title: Avoid any_instance_of in controller scaffold

The rspec-rails README advises against using `allow_any_instance_of` and `expect_any_instance of`, so I think these should be avoided in the generated controller scaffold.

This requires changing some `be_a_new` expectations to equality checks, but I don't think this is a problem.