Thursday, January 21, 2010

Re: [Rails] test:units failing

2010/1/21 Me <chabgood@gmail.com>:
> running rails 2.3, I do a rake test:units.  No tests only default
> stuff.  I get:
>
> 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.[]

Show us the code that failed (around the line generating the error).
But first look at it try and see why something that is expected to be
one of your model objects is acutally nil.

Colin

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate