govuk_test 0.4.2 → 0.4.3

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: 5183cd1f47c911312924ba50abc35594e6e36f60fedf6ca64ca820ddd063c05c
4
- data.tar.gz: 65b2a2a6c40934f740d99cfaffc114b2ab2444abc80f29579f3fdfbc14bd8cc8
3
+ metadata.gz: d0f3628dab9e72974434bd26d148789b60d2c1819cad8787f1fca3fe95cdea61
4
+ data.tar.gz: 388704d72c3a0d8954336f43134f261cfca5cd64af26afcdaa843d7f5b11c36b
5
5
  SHA512:
6
- metadata.gz: efffa2a1e080f445a0f5549417086d42118c9d4b213b9056ebe68f0edcfab540e3d0fbaaed65ca7806908c97919680522206889920117e60ba1988d50bd2ce15
7
- data.tar.gz: dc6ff8c20ee390800db137eb8a3a4dcebd78d4ec518dbeae75ff601937f430b777d12c80402349f6a2c83e6f4412bffb6fda83c9bbb12090fad1401e79aed7bf
6
+ metadata.gz: 0a58f7f9f6c0137deb7aaf1aacead1f0d3c00e66076af18cf35c346943d3bc701a6aa355c558e4e5f063e1e986df0ac3568b68096577b24d5f31b294c7302972
7
+ data.tar.gz: 5949ef24a42f58bc96c21e87cdce4312388bd9940c6511ad586fcdaeceff8e5c638bf7fea150270c5057abb879b5b08f9d418add1652907d19f0a05efcd32b4d
@@ -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.3
11
+
12
+ * Swap the deprecated chromedriver-helper gem for webdrivers gem
13
+
10
14
  ## 0.4.2
11
15
 
12
16
  * Silence Puma logs during spec suite.
@@ -23,8 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ["lib"]
24
24
 
25
25
  spec.add_dependency "capybara"
26
- spec.add_dependency "chromedriver-helper"
27
- spec.add_dependency "ptools"
26
+ spec.add_dependency "webdrivers"
28
27
  spec.add_dependency "puma"
29
28
  spec.add_dependency "selenium-webdriver"
30
29
 
@@ -1,22 +1,26 @@
1
1
  require "govuk_test/version"
2
2
 
3
3
  require "capybara"
4
- require "ptools"
5
4
  require "puma"
6
5
  require "selenium-webdriver"
7
6
 
7
+ unless ENV['GOVUK_TEST_USE_SYSTEM_CHROMEDRIVER']
8
+ require 'webdrivers'
9
+
10
+ # This stop webdrivers doing a lazy check for new versions
11
+ # of chromedriver, which interferes with WebMock.disable_net_connect
12
+ if ::Selenium::WebDriver::Service.respond_to? :driver_path=
13
+ Selenium::WebDriver::Chrome::Service.driver_path = Webdrivers::Chromedriver.update
14
+ else
15
+ Selenium::WebDriver::Chrome.driver_path = Webdrivers::Chromedriver.update
16
+ end
17
+ end
18
+
8
19
  module GovukTest
9
20
  def self.configure(options = {})
10
21
  chrome_options = %w(headless disable-gpu)
11
22
  chrome_options << "--window-size=#{options[:window_size]}" if options[:window_size]
12
23
 
13
- if ENV['GOVUK_TEST_USE_SYSTEM_CHROMEDRIVER']
14
- # Use the installed chromedriver, rather than chromedriver-helper
15
- Selenium::WebDriver::Chrome.driver_path = File.which("chromedriver")
16
- else
17
- require 'chromedriver-helper'
18
- end
19
-
20
24
  Capybara.register_driver :headless_chrome do |app|
21
25
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
22
26
  chromeOptions: { args: chrome_options }
@@ -1,3 +1,3 @@
1
1
  module GovukTest
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
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.4.2
4
+ version: 0.4.3
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-04-16 00:00:00.000000000 Z
11
+ date: 2019-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -25,21 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: chromedriver-helper
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: ptools
28
+ name: webdrivers
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -162,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
148
  - !ruby/object:Gem::Version
163
149
  version: '0'
164
150
  requirements: []
165
- rubygems_version: 3.0.1
151
+ rubygems_version: 3.0.3
166
152
  signing_key:
167
153
  specification_version: 4
168
154
  summary: Test setup for GOV.UK