spec/spec_helper.rb in capybara-3.18.0 vs spec/spec_helper.rb in capybara-3.19.0
- old
+ new
@@ -1,11 +1,18 @@
# frozen_string_literal: true
require 'rspec/expectations'
-require 'capybara/spec/spec_helper'
require 'webdrivers' if ENV['CI']
require 'selenium_statistics'
+if ENV['TRAVIS']
+ require 'coveralls'
+ Coveralls.wear! do
+ add_filter '/lib/capybara/driver/'
+ add_filter '/lib/capybara/registrations/'
+ end
+end
+require 'capybara/spec/spec_helper'
module Capybara
module SpecHelper
def firefox?(session)
browser_name(session) == :firefox &&
@@ -55,10 +62,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} --version`
+ $stdout.puts `#{path.gsub(' ', '\ ')} --version`
end
end
end
RSpec.configure do |config|