I am using devise 1.4.2 with rails 3.0.9, cucumber-rails 1.0.2, capybara 1.0.0. I got No route matches \"/users/sign_out\" error when I clicked logout. I added
The right way to solve this problem is explained in the devise's wiki page: https://github.com/plataformatec/devise/wiki/How-To:-Test-with-Capybara
Basically, once you have included on your user_step.rb file:
include Warden::Test::Helpers
Warden.test_mode!
You may replace visit '/users/sign_out' with logout(:user)