mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Moved session cleanup to before the test so that i still have browser state when debuging a faild test, (I reuse the Selenuium/Firefox instance by starting it in the prefork part of spork)
This commit is contained in:
parent
a4ed172f77
commit
2cfb73320f
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue