lib/turnip/capybara.rb in turnip-1.0.0 vs lib/turnip/capybara.rb in turnip-1.1.0
- old
+ new
@@ -1,8 +1,6 @@
require 'capybara/rspec'
-Turnip.type = :request
-
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|