Sha256: cf32d68b80facc4b7683841917a5321f507a86a259de787347febabc8e463586
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require 'capybara/rspec' RSpec.configure do |config| config.before do current_example = example if respond_to?(:example) current_example ||= RSpec.current_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
turnip-1.2.2 | lib/turnip/capybara.rb |