Sha256: cede77adf0e41411e286df6e38cf45c606c1e85bbded9a88fbb09be1dd3a39bc

Contents?: true

Size: 491 Bytes

Versions: 17

Compression:

Stored size: 491 Bytes

Contents

require 'capybara'
require 'capybara/rspec/matchers'

World(Capybara::DSL)
World(Capybara::RSpecMatchers)

After do
  Capybara.reset_sessions!
end

Before do
  Capybara.use_default_driver
end

Before '@javascript' do
  Capybara.current_driver = Capybara.javascript_driver
end

Before do |scenario|
  scenario.source_tag_names.each do |tag|
    driver_name = tag.sub(/^@/, '').to_sym
    if Capybara.drivers.has_key?(driver_name)
      Capybara.current_driver = driver_name
    end
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/capybara-2.4.4/lib/capybara/cucumber.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/cucumber.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/cucumber.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/cucumber.rb
capybara-2.5.0 lib/capybara/cucumber.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/capybara-2.4.4/lib/capybara/cucumber.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/capybara-2.4.4/lib/capybara/cucumber.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/capybara-2.4.4/lib/capybara/cucumber.rb
capybara-2.4.4 lib/capybara/cucumber.rb
capybara-2.4.3 lib/capybara/cucumber.rb
capybara-2.4.2 lib/capybara/cucumber.rb
capybara-2.4.1 lib/capybara/cucumber.rb
capybara-2.4.0 lib/capybara/cucumber.rb
capybara-2.3.0 lib/capybara/cucumber.rb
capybara-2.2.1 lib/capybara/cucumber.rb
capybara-2.2.0 lib/capybara/cucumber.rb
capybara-2.2.0.rc1 lib/capybara/cucumber.rb