Working with Test::Unit and Shoulda. Trying to test Users.create
. My understanding is that Rails forms send params for an object like this:
user[email]
Which turns into hash in your action, right?
params[:user][:email]
OK, so in my test I've tried...
setup { post :create, :post => { 'user[email]' => 'invalid@abc' } }
and
setup { post :create, :post => { :user => { :email => 'abc@abcd' } } }
In both cases, over in my action, params[:user]
is nil.