spec/spec_helper.rb in capybara-3.39.2 vs spec/spec_helper.rb in capybara-3.40.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true require 'rspec/expectations' -require 'webdrivers' if ENV.fetch('CI', nil) || ENV.fetch('WEBDRIVERS', nil) +require 'webdrivers' if ENV.fetch('WEBDRIVERS', nil) require 'selenium_statistics' if ENV['TRAVIS'] require 'coveralls' Coveralls.wear! do add_filter '/lib/capybara/driver/' @@ -112,10 +112,10 @@ def self.log_selenium_driver_version(mod) mod = mod::Service if ::Selenium::WebDriver::Service.respond_to? :driver_path path = mod.driver_path path = path.call if path.respond_to? :call - $stdout.puts `#{path.gsub(' ', '\ ')} --version` + $stdout.puts `#{path.gsub(' ', '\ ')} --version` if path end end end RSpec.configure do |config|