Sha256: 45aaeef1451e7ebc4c6c53336c863029dcd6607b0fd79f9b0163e0ade47bea7f

Contents?: true

Size: 549 Bytes

Versions: 73

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

require 'capybara/dsl'
require 'capybara/rspec/matchers'
require 'capybara/rspec/matcher_proxies'

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
    Capybara.current_driver = driver_name if Capybara.drivers.key?(driver_name)
  end
end

Version data entries

73 entries across 70 versions & 3 rubygems

Version Path
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/capybara-3.32.2/lib/capybara/cucumber.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/cucumber.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/capybara-3.32.2/lib/capybara/cucumber.rb
capybara-3.32.2 lib/capybara/cucumber.rb
capybara-3.32.1 lib/capybara/cucumber.rb
capybara-3.32.0 lib/capybara/cucumber.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/cucumber.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/capybara-3.31.0/lib/capybara/cucumber.rb
capybara-3.31.0 lib/capybara/cucumber.rb
capybara-3.30.0 lib/capybara/cucumber.rb
tdiary-5.1.0 vendor/bundle/gems/capybara-3.29.0/lib/capybara/cucumber.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/cucumber.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/cucumber.rb
capybara-3.29.0 lib/capybara/cucumber.rb
capybara-3.28.0 lib/capybara/cucumber.rb
capybara-3.27.0 lib/capybara/cucumber.rb
capybara-3.26.0 lib/capybara/cucumber.rb
capybara-3.25.0 lib/capybara/cucumber.rb
capybara-3.24.0 lib/capybara/cucumber.rb
capybara-3.23.0 lib/capybara/cucumber.rb