Working with Test::Unit and Shoulda. Trying to test Users.create. My understanding is that Rails forms send params for an object like this:
Users.create
user[ema
post :create, {:post => {}, :user => {:email => 'abc@abcd'} }
In this case params[:post] is {}, params[:user] is {:email => 'abc@abcd'}, params[:user][:email] is 'abc@abcd'.
post :create, {:post => {:user => {:email => 'abc@abcd'} } }
In this case params[:post][:user][:email] is 'abc@abcd'