1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/cucumber.rb
2011-02-06 14:44:43 +01:00

34 lines
560 B
Ruby

require 'capybara'
require 'capybara/dsl'
require 'capybara/rspec_matchers'
World(Capybara)
World(Capybara::RSpecMatchers)
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