blowmage/minitest-rails — pull request #78 by zesty (2012-10-09 04:52:14+00:00)
Title: Update controller scaffold templates

Previously, one would get mass assignment and route errors. Now all tests pass. Brought in some code from rails/master for the mass assignment issue.

Tested with rails 3.2.8 clean app with vanilla install of minitest-rails per github docs.

test loop, fwiw:

alias br='bundle exec rake'

bundle; br db:drop:all; br db:create:all; rails d scaffold user name; rails g scaffold user name; br db:migrate; br test

# reset for spec loop
rails d scaffold user name

bundle; br db:drop:all; br db:create:all; rails d scaffold user name --spec; rails g scaffold user name --spec; br db:migrate; br test