diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index e153638..f1b3887 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -1,10 +1,5 @@ require "test_helper" -if ENV["TRAVIS"] - require "chromedriver/helper" - Chromedriver.set_version "2.35" -end - class ApplicationSystemTestCase < ActionDispatch::SystemTestCase # For debugging JavaScript, make slower tests... # caps = Selenium::WebDriver::Remote::Capabilities.chrome(loggingPrefs: { browser: 'ALL' }) diff --git a/test/test_helper.rb b/test/test_helper.rb index e564fc0..fa9ba09 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -4,8 +4,13 @@ require 'test/unit/rails/test_help' require 'test/unit/rr' require 'test/unit/capybara' require 'capybara-screenshot/testunit' # for integration test -require 'webmock/test_unit' +if ENV["TRAVIS"] + require "chromedriver/helper" + Chromedriver.set_version "2.35" +end + +require 'webmock/test_unit' WebMock.disable_net_connect!(allow_localhost: true)