Skip to content
Browse files

Clean up sessions after under cucumber, to be consistent with rspec

  • Loading branch information...
1 parent cceb6b8 commit a1c84533422fb2faf4d7d6a9a1efa992ba32a0f6 @jnicklas committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/capybara/cucumber.rb
View
5 lib/capybara/cucumber.rb
@@ -6,8 +6,11 @@
World(Capybara::DSL)
World(Capybara::RSpecMatchers)
-Before do
+After do
@abotalov Collaborator

Have you looked at this commit? - 2cfb733

@jnicklas Owner

The problem is that since reset_session now raises an exception if one occured during the scenario. This is super confusing if we raise the exception at the beginning of the next scenario. That's a much bigger problem than what the linked commit solves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Capybara.reset_sessions!
+end
+
+Before do
Capybara.use_default_driver
end

0 comments on commit a1c8453

Please sign in to comment.
Something went wrong with that request. Please try again.