Skip to content

Commit 4c9f4f2

Browse files
committed
fix: CUPRITE_DEBUG should be checked asap
1 parent b3b0d36 commit 4c9f4f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/capybara/cuprite.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22

3+
ENV["FERRUM_DEBUG"] = "true" if ENV["CUPRITE_DEBUG"]
4+
35
require "ferrum"
46
require "capybara"
57
require "capybara/cuprite/driver"

lib/capybara/cuprite/driver.rb

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def initialize(app, options = {})
4141
@options[:browser_options].merge!("remote-allow-origins": "*")
4242
end
4343

44-
ENV["FERRUM_DEBUG"] = "true" if ENV["CUPRITE_DEBUG"]
45-
4644
super()
4745
end
4846

0 commit comments

Comments
 (0)