as stated in Rails Book example , I have a fixtures file orders.yml
email_address: [email protected];com
in my controller test file, I tried :
post :save_order, :order => @valid_order_fo_fred.attributes
but I get an error
NoMethodError: You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.attributes