[rspec-users] In spec/controller file not taking controller property

Arun Sharma lists at ruby-forum.com
Sat Nov 13 01:59:22 EST 2010

My rspec file is not taking controller property.
> In controller instance variable defined as :


> In rspec file my code is
get :create,:portal_news=>{:user_id=>101}

> I getting error is

NoMethodError in 'PortalNewsController should_check_variable'
undefined method `user_id' for nil:NilClass

> please post the solution.I am waiting for reply

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list