I don't know the answer off the top of my head. But please do submit a pull-request to the master branch of radiant if you solve this. I'll see if I can find out for you but I'm travelling on vacation for the next 2 weeks.
On Mon, Jun 24, 2013 at 3:03 PM, ROR Architect <[email protected]> wrote: > 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 > "Radiant CMS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Write intention revealing code #=> http://www.clean-ruby.com Jim Gay Saturn Flyer LLC 571-403-0338 -- --- You received this message because you are subscribed to the Google Groups "Radiant CMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
