govuk_test 0.3.1 → 0.4.0

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: f79d22e1b156c1e4ff6a1250fc28eda990c9b682dd3c59dc78e45a6474aada35
4
- data.tar.gz: 2af7a1516085ac4305516f7d2afeec6ae33d92efce8c72340318451991e2c200
3
+ metadata.gz: df8035650ae1b95850ee9b552199424d23fe8a8c67e7e584fc54721d37cb51a1
4
+ data.tar.gz: 573a1a29f2f4c52bc4aab517c10f9390e31bf1dcde69406c99b93ed9bf121ff7
5
5
  SHA512:
6
- metadata.gz: be9329ffff9b305364b06f7e93a14b76de832be83cddf2bb1e9c58f00306cfe050118a2893c0560b6fb09fcae7ad0219bfaa00b3b71a81ee575ea820d0ce28f2
7
- data.tar.gz: 1dc15284d7dc2584166e94a69c016038d3ed9240e4c793200648c7e6ec204a1e0c3c7c088cf856b7e119b1f4deed85dd8ed0a2e9e20aa739338ea14fe39fd6b2
6
+ metadata.gz: f39778d5299fed78e5cf601c3808937d88cbbb33a8077e7558010e2fb2de2d9351ffc5d2af8f4e1371b80e17892bae5ce385f8f716520c17eaecb28fb4e3b6bb
7
+ data.tar.gz: 489b093f4e95ead7a7407ae04fd80f6f52a92b7a3489ee0551a8593e7e2cf9f73ef58e1a5353b5f623c3dae953de5e8aed74e0626ff2ef613f59a82b002c25a3
@@ -7,6 +7,10 @@
7
7
  useful summary for people upgrading their application, not a replication
8
8
  of the commit log.
9
9
 
10
+ ## 0.4.0
11
+
12
+ * Don't download chromedriver if it's already available.
13
+
10
14
  ## 0.3.1
11
15
 
12
16
  * Revert "Don't force use of chromedriver-helper" - which seems to break apps in CI
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency "capybara"
26
26
  spec.add_dependency "chromedriver-helper"
27
+ spec.add_dependency "ptools"
27
28
  spec.add_dependency "puma"
28
29
  spec.add_dependency "selenium-webdriver"
29
30
 
@@ -1,8 +1,8 @@
1
1
  require "govuk_test/version"
2
2
 
3
3
  require "capybara"
4
+ require "ptools"
4
5
  require "puma"
5
- require "chromedriver-helper"
6
6
  require "selenium-webdriver"
7
7
 
8
8
  module GovukTest
@@ -10,6 +10,14 @@ 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
15
+ # Use the installed chromedriver, rather than chromedriver-helper
16
+ Selenium::WebDriver::Chrome.driver_path = chromedriver_from_path
17
+ else
18
+ require 'chromedriver-helper'
19
+ end
20
+
13
21
  Capybara.register_driver :headless_chrome do |app|
14
22
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
15
23
  chromeOptions: { args: chrome_options }
@@ -1,3 +1,3 @@
1
1
  module GovukTest
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  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.3.1
4
+ version: 0.4.0
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: 2018-11-14 00:00:00.000000000 Z
11
+ date: 2019-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: ptools
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: puma
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -148,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
162
  - !ruby/object:Gem::Version
149
163
  version: '0'
150
164
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.7.6
165
+ rubygems_version: 3.0.1
153
166
  signing_key:
154
167
  specification_version: 4
155
168
  summary: Test setup for GOV.UK