diff --git a/lib/capybara/cuprite.rb b/lib/capybara/cuprite.rb index aa1f23d..9b868d3 100644 --- a/lib/capybara/cuprite.rb +++ b/lib/capybara/cuprite.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +ENV["FERRUM_DEBUG"] = "true" if ENV["CUPRITE_DEBUG"] + require "ferrum" require "capybara" require "capybara/cuprite/driver" diff --git a/lib/capybara/cuprite/driver.rb b/lib/capybara/cuprite/driver.rb index 2dfa59f..1338734 100644 --- a/lib/capybara/cuprite/driver.rb +++ b/lib/capybara/cuprite/driver.rb @@ -41,8 +41,6 @@ def initialize(app, options = {}) @options[:browser_options].merge!("remote-allow-origins": "*") end - ENV["FERRUM_DEBUG"] = "true" if ENV["CUPRITE_DEBUG"] - super() end