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
1 changed files with 2 additions and 5 deletions

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