govuk_test 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df8035650ae1b95850ee9b552199424d23fe8a8c67e7e584fc54721d37cb51a1
4
- data.tar.gz: 573a1a29f2f4c52bc4aab517c10f9390e31bf1dcde69406c99b93ed9bf121ff7
3
+ metadata.gz: a46a8a4f48af74b23288d1588bdc69fbdb40f492b75b6e5245e19494d664b72d
4
+ data.tar.gz: 3a0bcaa327356f28c48ae83787e4a0d3d6f47c54b921c655768ce0340b4c9211
5
5
  SHA512:
6
- metadata.gz: f39778d5299fed78e5cf601c3808937d88cbbb33a8077e7558010e2fb2de2d9351ffc5d2af8f4e1371b80e17892bae5ce385f8f716520c17eaecb28fb4e3b6bb
7
- data.tar.gz: 489b093f4e95ead7a7407ae04fd80f6f52a92b7a3489ee0551a8593e7e2cf9f73ef58e1a5353b5f623c3dae953de5e8aed74e0626ff2ef613f59a82b002c25a3
6
+ metadata.gz: fac4eb735ff1764f93741495609f6160046e36e95cd001d2695c01e05e140f594c300f795dcf296b5c40d2316e6dd206cf82a2abf641cf368e5719df783ceedf
7
+ data.tar.gz: 7defc116b721244fc36e666cd0c484c480a56a3d014b1e058f6d57d7e1c9a25494325284c098035cfa25b4bb1ae8980a4a6fd3e9f7adf0cdcbf64a73fd74ec8c
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@
7
7
  useful summary for people upgrading their application, not a replication
8
8
  of the commit log.
9
9
 
10
+ ## 0.4.1
11
+
12
+ * Avoid issues with older versions of the chromedriver-helper gem, by
13
+ only using chromedriver form the PATH if
14
+ GOVUK_TEST_USE_SYSTEM_CHROMEDRIVER is set in the environment.
15
+
10
16
  ## 0.4.0
11
17
 
12
18
  * Don't download chromedriver if it's already available.
@@ -1,3 +1,3 @@
1
1
  module GovukTest
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/lib/govuk_test.rb CHANGED
@@ -10,10 +10,9 @@ module GovukTest
10
10
  chrome_options = %w(headless disable-gpu)
11
11
  chrome_options << "--window-size=#{options[:window_size]}" if options[:window_size]
12
12
 
13
- chromedriver_from_path = File.which("chromedriver")
14
- if chromedriver_from_path
13
+ if ENV['GOVUK_TEST_USE_SYSTEM_CHROMEDRIVER']
15
14
  # Use the installed chromedriver, rather than chromedriver-helper
16
- Selenium::WebDriver::Chrome.driver_path = chromedriver_from_path
15
+ Selenium::WebDriver::Chrome.driver_path = File.which("chromedriver")
17
16
  else
18
17
  require 'chromedriver-helper'
19
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara