Skip to content

Commit

Permalink
Download chromedriver before disable net connection
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Okimoto <[email protected]>
  • Loading branch information
okkez committed Aug 8, 2018
1 parent 0806972 commit 5457035
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -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' })
Expand Down
5 changes: 5 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
require 'capybara-screenshot/testunit' # for integration test
require 'webmock/test_unit'

if ENV["TRAVIS"]
require "chromedriver/helper"
Chromedriver.set_version "2.35"
end

WebMock.disable_net_connect!(allow_localhost: true)


Expand Down

0 comments on commit 5457035

Please sign in to comment.