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 |
---|---|
capybara-1.0.0.rc1 | lib/capybara/cucumber.rb |
capybara-1.0.0.beta1 | lib/capybara/cucumber.rb |