On 26 August 2010 21:29, Georgie Porgie <[email protected]> wrote: > It's line #6. Sorry I cut out some comments and stuff so as to not > clutter the post. The response is a 500 and the assertion is failing > on like number 6 because it is expecting a 200. I'm just trying to > figure out why it's a 500.
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 > > On Aug 26, 3:25 pm, Colin Law <[email protected]> wrote: >> On 26 August 2010 21:12, Georgie Porgie <[email protected]> wrote: >> >> > 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' >> >> Which is that line? The code you showed only had 8 lines. >> >> Colin >> >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/testsuite.rb:34:in `run' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/testsuite.rb:33:in `each' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/testsuite.rb:33:in `run' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/testsuite.rb:34:in `run' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/testsuite.rb:33:in `each' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/testsuite.rb:33:in `run' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/ui/console/testrunner.rb:41:in `start' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/autorunner.rb:216:in `run' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit/autorunner.rb:12:in `run' >> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ >> > 1.8/test/unit.rb:278 >> > rake (0.8.7) lib/rake/rake_test_loader.rb:5 >> >> > 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 [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

