Sha256: e4a2068ff4835bad64044e9f0b5306bf2eec5dcd3e3e38a08a3325ade86b771e
Contents?: true
Size: 552 Bytes
Versions: 4
Compression:
Stored size: 552 Bytes
Contents
require 'capybara/rspec' RSpec.configure do |config| config.before do current_example = RSpec.current_example if RSpec.respond_to?(:current_example) current_example ||= example if self.class.include?(Capybara::DSL) and current_example.metadata[:turnip] Capybara.current_driver = Capybara.javascript_driver if current_example.metadata.has_key?(:javascript) current_example.metadata.each do |tag, value| if Capybara.drivers.has_key?(tag) Capybara.current_driver = tag end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
turnip-1.3.1 | lib/turnip/capybara.rb |
turnip-1.3.0 | lib/turnip/capybara.rb |
turnip-1.2.4 | lib/turnip/capybara.rb |
turnip-1.2.3 | lib/turnip/capybara.rb |