Sha256: a6273067790d4b2a0be40a0a10fe4cea8965e7d635bb830eeb12cbbd50283fff

Contents?: true

Size: 514 Bytes

Versions: 22

Compression:

Stored size: 514 Bytes

Contents

require 'capybara'

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

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

After do
  Capybara.reset_sessions!
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

After do
  Capybara.use_default_driver
end

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.4/lib/capybara/cucumber.rb
capybara-1.1.4 lib/capybara/cucumber.rb
capybara-1.1.3 lib/capybara/cucumber.rb
nimboids-capybara-1.1.2 lib/capybara/cucumber.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/cucumber.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/cucumber.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/cucumber.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/cucumber.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/cucumber.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/cucumber.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/cucumber.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/cucumber.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/cucumber.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/cucumber.rb
capybara-1.1.2 lib/capybara/cucumber.rb
capybara-1.1.1 lib/capybara/cucumber.rb
capybara-1.1.0 lib/capybara/cucumber.rb
capybara-1.1.0.rc1 lib/capybara/cucumber.rb
capybara-1.0.1 lib/capybara/cucumber.rb
capybara-1.0.0 lib/capybara/cucumber.rb