Have a look in test.log, there should be more information about the
error there, including where the error occurred.
Colin
Which is that line? The code you showed only had 8 lines.
Colin
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
> Well this is all I get and i can't really make anything out of it:
>
> NoMethodError (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.+):
> /test/integration/user_stories_test.rb:12:in `some_test'
You'd need to at least look at what's on that line and see what's on
the left side of a '+'. THAT object is probably nil (and the whiny
nils of Rails is looking for something that responds to + and offers
Array as one possibility).
-Rob
>
> Rendered rescues/_trace (36.6ms)
> Rendered rescues/_request_and_response (1.3ms)
> Rendering rescues/layout (internal_server_error)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-
> ta...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
> .
>
Rob Biedenharn
R...@AgileConsultingLLC.com http://AgileConsultingLLC.com/
r...@GaslightSoftware.com http://GaslightSoftware.com/
The error in the trace is showing as line 12, are you saying that is
the assert line? Could you post the whole file please just to keep me
happy.
Could you post the log showing the first half of the test also (the
get that works).
Please don't top post, it makes it difficult to follow the thread. Thanks.
Colin
Your error log says otherwise:
"The error occurred while evaluating nil.+"
That means you tried to do addition with a nil, and that doesn't work
since nil doesn't support the '+' method.
--
Greg Donald
destiney.com | gregdonald.com
It works ok for me on rails 2.3.2.
Colin
> To post to this group, send email to rubyonra...@googlegroups.com.