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

32 lines (24 sloc) 0.531 kb
require 'capybara'
require 'capybara/dsl'
World(Capybara)
After do
Capybara.reset_sessions!
end
require 'database_cleaner'
require 'database_cleaner/cucumber'
DatabaseCleaner.strategy = :truncation
Before('@javascript') do
Capybara.current_driver = Capybara.javascript_driver
end
Before('@selenium') do
Capybara.current_driver = :selenium
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.