Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (24 sloc) 0.495 kb
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
Jump to Line
Something went wrong with that request. Please try again.