Displaying 2 results from an estimated 2 matches for "assigns_hash_proxy".
2007 Aug 21
2
using restful_authentication current_user inside controller specs
...et 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 --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/...
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned
from github... there isn''t any .gemspec file or rake task that does
this. Any help?
--
Posted via http://www.ruby-forum.com/.