I get this code generated for scaffold:
assert_difference('Day.count') do
post :create, day: @day.attributes
end
you see? It’s not :day => @day.attributes, it’s day: @day.attributes. One of my two dev environments doesn’t complain, another one complains, and production doesn’t complain. Am I going crazy?
That’s just new ruby 1.9 syntax. You can track ruby syntax changes at eigenclass.org 🙂
EDIT: Which seems to be malformed somehow. Interesting.