1
0
Fork 0
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:
Darwin 2011-09-08 16:43:13 +02:00
parent a4ed172f77
commit 2cfb73320f

View file

@ -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