diff --git a/lib/capybara/cucumber.rb b/lib/capybara/cucumber.rb index e40f2ae7..328457a7 100644 --- a/lib/capybara/cucumber.rb +++ b/lib/capybara/cucumber.rb @@ -3,8 +3,9 @@ require 'capybara/dsl' World(Capybara) -After do +Before do Capybara.reset_sessions! + Capybara.use_default_driver end Before('@javascript') do @@ -26,7 +27,3 @@ end Before('@rack_test') do Capybara.current_driver = :rack_test end - -After do - Capybara.use_default_driver -end