Displaying 1 result from an estimated 1 matches for "yellowticket".
2007 Aug 21
2
using restful_authentication current_user inside controller specs
...ketsController handling POST /tickets should create a
new ticket and assign current user as ticket''s user''
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
/Volumes/EXTERNAL/web/yellowticket/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/assigns_hash_proxy.rb:10:in
`[]''
./spec/controllers/tickets_controller_spec.rb:14:
My guess is that I''m not allow to do this: assigns[:ticket].user
How do I apple the assignment with current_user?
-------------- next part --------...