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 Feb 21, 2024
1 parent 1e573a7 commit b0532af
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 @@ -40,8 +40,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 b0532af

Please sign in to comment.