Sha256: a4d4b57f07639c81c5b90be9d5a3ec175bdd781c6e1ef5054cc0d2921512011b

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

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('@culerity') do
  Capybara.current_driver = :culerity
end

Before('@rack_test') do
  Capybara.current_driver = :rack_test
end

After do
  Capybara.use_default_driver
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capybara-0.2.0 lib/capybara/cucumber.rb
capybara-0.1.4 lib/capybara/cucumber.rb
capybara-0.1.3 lib/capybara/cucumber.rb