Georgie Porgie
2010-Aug-26 05:28 UTC
Problem with consecutive GET requests in integration test
class UserStoriesTest < ActionController::IntegrationTest test "some test" do get "/" assert_response :success get "/" assert_response :success end end When I run the code above the first assertion passes. However, the second assertion fails because the response is a 500. To be more specific I get this error: Expected response to be a <:success>, but was <500> <"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.+"> Anyone have an explanation? I want to to test some going to the homepage and then clicking on a link to the login page which is why I am calling consecutive GET requests. Help me if I am going about it the wrong way. Thanks in advance! -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
clanlaw
2010-Aug-26 10:34 UTC
Re: Problem with consecutive GET requests in integration test
On 26 August 2010 06:28, Georgie Porgie <georgemiramontes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> class UserStoriesTest < ActionController::IntegrationTest > test "some test" do > get "/" > assert_response :success > get "/" > assert_response :success > end > end > > When I run the code above the first assertion passes. However, the > second assertion fails because the response is a 500. To be more > specific I get this error: > > Expected response to be a <:success>, but was <500> > <"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.+"> >Have a look in test.log, there should be more information about the error there, including where the error occurred. 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Georgie Porgie
2010-Aug-26 20:12 UTC
Re: Problem with consecutive GET requests in integration test
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'' /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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2010-Aug-26 20:25 UTC
Re: Re: Problem with consecutive GET requests in integration test
On 26 August 2010 21:12, Georgie Porgie <georgemiramontes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Georgie Porgie
2010-Aug-26 20:29 UTC
Re: Problem with consecutive GET requests in integration test
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. On Aug 26, 3:25 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 26 August 2010 21:12, Georgie Porgie <georgemiramon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rob Biedenharn
2010-Aug-26 20:38 UTC
Re: Re: Problem with consecutive GET requests in integration test
On Aug 26, 2010, at 4:12 PM, Georgie Porgie 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''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- > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en > . >Rob Biedenharn Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org http://AgileConsultingLLC.com/ rab-/VpnD74mH8+00s0LW7PaslaTQe2KTcn/@public.gmane.org http://GaslightSoftware.com/ -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2010-Aug-26 20:40 UTC
Re: Re: Problem with consecutive GET requests in integration test
On 26 August 2010 21:29, Georgie Porgie <georgemiramontes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> On 26 August 2010 21:12, Georgie Porgie <georgemiramon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. >> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Georgie Porgie
2010-Aug-26 20:45 UTC
Re: Problem with consecutive GET requests in integration test
I''m not sure what you mean by "see what''s on the left side of a ''+''." because there is no ''+''. Just out of curiosity, can someone run this test on their app? I''ve found that the same error happens even on a simple app that has a root url available. btw, I''m using rails 2.3.8 and ruby 1.8.7 Thanks! On Aug 26, 3:38 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> On Aug 26, 2010, at 4:12 PM, Georgie Porgie 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'' > > 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- > > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > . > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en > > . > > Rob Biedenharn > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org http://AgileConsultingLLC.com/ > r...-/VpnD74mH8+00s0LW7PaslaTQe2KTcn/@public.gmane.org http://GaslightSoftware.com/-- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Greg Donald
2010-Aug-26 20:55 UTC
Re: Re: Problem with consecutive GET requests in integration test
On Thu, Aug 26, 2010 at 3:45 PM, Georgie Porgie <georgemiramontes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m not sure what you mean by "see what''s on > the left side of a ''+''." because there is no ''+''.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 -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2010-Aug-26 21:10 UTC
Re: Re: Problem with consecutive GET requests in integration test
On 26 August 2010 21:45, Georgie Porgie <georgemiramontes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m not sure what you mean by "see what''s on > the left side of a ''+''." because there is no ''+''. > > Just out of curiosity, can someone run this test on their app? I''ve > found that the same error happens even on a simple app that has a root > url available.It works ok for me on rails 2.3.2. Colin> > btw, I''m using rails 2.3.8 and ruby 1.8.7 > > Thanks! > > On Aug 26, 3:38 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: >> On Aug 26, 2010, at 4:12 PM, Georgie Porgie 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'' >> >> 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- >> > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > . >> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en >> > . >> >> Rob Biedenharn >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org http://AgileConsultingLLC.com/ >> r...-/VpnD74mH8+00s0LW7PaslaTQe2KTcn/@public.gmane.org http://GaslightSoftware.com/ > > -- > 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Georgie Porgie
2010-Aug-30 15:28 UTC
Re: Problem with consecutive GET requests in integration test
So I investigated further and it seems to be a facebooker problem with session management. When I find the root problem, I''ll post what it is and what I did to fix it. Thanks for the help! On Aug 26, 4:10 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 26 August 2010 21:45, Georgie Porgie <georgemiramon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''m not sure what you mean by "see what''s on > > the left side of a ''+''." because there is no ''+''. > > > Just out of curiosity, can someone run this test on their app? I''ve > > found that the same error happens even on a simple app that has a root > > url available. > > It works ok for me on rails 2.3.2. > > Colin > > > > > btw, I''m using rails 2.3.8 and ruby 1.8.7 > > > Thanks! > > > On Aug 26, 3:38 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > > wrote: > >> On Aug 26, 2010, at 4:12 PM, Georgie Porgie 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'' > > >> 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- > >> > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > >> > . > >> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en > >> > . > > >> Rob Biedenharn > >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org http://AgileConsultingLLC.com/ > >> r...-/VpnD74mH8+00s0LW7PaslaTQe2KTcn/@public.gmane.org http://GaslightSoftware.com/ > > > -- > > 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.