Skip to content

Commit

Permalink
fix: CUPRITE_DEBUG should be checked asap
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Jun 15, 2024
1 parent b3b0d36 commit 4c9f4f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/capybara/cuprite.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

ENV["FERRUM_DEBUG"] = "true" if ENV["CUPRITE_DEBUG"]

require "ferrum"
require "capybara"
require "capybara/cuprite/driver"
Expand Down
2 changes: 0 additions & 2 deletions lib/capybara/cuprite/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4c9f4f2

Please sign in to comment.