[rspec-users] Why @controller is nil error on loading fixtures in model?
Harry Bishop
lists at ruby-forum.com
Sun Oct 19 10:12:00 EDT 2008
Zach Dennis wrote:
> On Sat, Oct 18, 2008 at 6:10 PM, Harry Bishop <lists at ruby-forum.com>
> wrote:
>> '/../helpers/votes_spec_helper')
>>
>> but no change.
>>
>> I would appreciate some assistance here to get this off the ground.
>
> It's being you are calling "put" and I believe you want "puts". The
> method "put" is a Rails testing method which tries to invoke a PUT
> http request on a given controller action. That is why you are getting
> @controller is nil.
>
> --
> Zach Dennis
> http://www.continuousthinking.com
> http://www.mutuallyhuman.com
yes that was the problem. That d*** dyslexia again.
Thanks very much, as frustration had set in.
HR
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list