Hi, this is how I fixed it. Not sure if it is the best way but cucumber passes and the "real" application also behaves as expected.
Scenario: ... And I press "Login" Then I must be on the login page <--- this won't use the webrat default step And I should see "Your account has not been activated yet." ... Then I have define a step where I actually tell the expected route: Then /^I must be on (.+)$/ do |page_name| URI.parse(current_url).path.should == "/user_session" end Cheers. -- Posted via http://www.ruby-forum.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 [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 -~----------~----~----~----~------~----~------~--~---

