ROR Architect
2013-Jun-24 19:00 UTC
wrong number of arguments calling `request` (0 for 1) (ArgumentError)
Here is the scenario Scenario: Successful login Given an unauthenticated visitor When visitor goes to /users/login And fills in Email with: amitpandya And fills in Password with: amitpandya And clicks the Login button Then amitpandya should be logged in And page should include a notice with text: Welcome amitpandya And amitpandya should see the home mypage page now in steps file When "$person logs in" do |user| post_via_redirect "/users/login", {:authenticator => {:username => user, :password => "washington"}},{:https => ''on''} request.should_not be_ssl request.session[:user_id].should == Person.find_by_username(user).id end working fine with cucumber-0.10.0 and cucumber-rails-0.3.2 but if I upgrade with cucumber-rails-1.2.1 or cucumber-rails-1.3.1 - at this line request.session[:user_id].should == Person.find_by_username(user).id I am getting bellow error. Then amitpandya should be logged in # features/step_definitions/session_steps.rb:11 wrong number of arguments calling `request` (0 for 1) (ArgumentError) ./features/step_definitions/session_steps.rb:12:in `/^(.*)\ should\ be\ logged\ in$/'' features/login.feature:23:in `Then amitpandya should be logged in'' Any help How can I fix it? Thank you. With kind regards, Amit Pandya -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/26ea9e72-d04e-40f3-9dd8-06d3b144adb8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.