Skip to content

Commit

Permalink
Default to headless
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkyMarkMcDonald committed Mar 31, 2018
1 parent 841d7e5 commit 2a419fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/doc_doc/horse_and_buggy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(throttle = DEFAULT_THROTTLE)

Capybara.register_driver :headless_chrome do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: {args: ENV.fetch('HEAD_ON') ? %w() : %w(headless)}
chromeOptions: {args: ENV.fetch('HEAD_ON', false) ? %w() : %w(headless)}
)

Capybara::Selenium::Driver.new(
Expand Down

0 comments on commit 2a419fa

Please sign in to comment.