Created
October 26, 2016 11:38
-
-
Save mudge/31a976b7aa2344e041eb53d08fd3f37d to your computer and use it in GitHub Desktop.
Run every Cucumber scenario with a separate Capybara session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Around do |scenario, block| | |
Capybara.using_session(scenario.object_id) do | |
block.call | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment