mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
32 lines
495 B
Ruby
32 lines
495 B
Ruby
require 'capybara'
|
|
require 'capybara/dsl'
|
|
|
|
World(Capybara)
|
|
|
|
After do
|
|
Capybara.reset_sessions!
|
|
end
|
|
|
|
Before('@javascript') do
|
|
Capybara.current_driver = Capybara.javascript_driver
|
|
end
|
|
|
|
Before('@selenium') do
|
|
Capybara.current_driver = :selenium
|
|
end
|
|
|
|
Before('@celerity') do
|
|
Capybara.current_driver = :celerity
|
|
end
|
|
|
|
Before('@culerity') do
|
|
Capybara.current_driver = :culerity
|
|
end
|
|
|
|
Before('@rack_test') do
|
|
Capybara.current_driver = :rack_test
|
|
end
|
|
|
|
After do
|
|
Capybara.use_default_driver
|
|
end
|