Sha256: 6d84d8cad21309cb09412d42aec922d8bf76605f9d7e789ae24fa1e1e72c6ea8
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
require 'capybara/rspec' RSpec.configure do |config| config.before do if self.class.include?(Capybara::DSL) and example.metadata[:turnip] Capybara.current_driver = Capybara.javascript_driver if example.metadata.has_key?(:javascript) example.metadata.each do |tag, value| if Capybara.drivers.has_key?(tag) Capybara.current_driver = tag end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
turnip-1.2.1 | lib/turnip/capybara.rb |
turnip-1.2.0 | lib/turnip/capybara.rb |
turnip-1.1.0 | lib/turnip/capybara.rb |