Sha256: ee498557ebbe1bb274bb2f0753e55bb2209238a3fcfdb7777463e62aa78f7d00
Contents?: true
Size: 633 Bytes
Versions: 19
Compression:
Stored size: 633 Bytes
Contents
require 'capybara' require 'gurke' require 'capybara/dsl' require 'capybara/rspec/matchers' Gurke.configure do |c| c.include Capybara::DSL, type: :feature c.include Capybara::RSpecMatchers, type: :feature c.before do next unless self.class.include?(Capybara::DSL) # if context.metadata[:js] # Capybara.current_driver = Capybara.javascript_driver # end # # if context.metadata[:driver] # Capybara.current_driver = context.metadata[:driver] # end end c.after do next unless self.class.include?(Capybara::DSL) Capybara.reset_sessions! Capybara.use_default_driver end end
Version data entries
19 entries across 19 versions & 1 rubygems