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?