govuk_test 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +16 -1
- data/lib/govuk_test.rb +1 -1
- data/lib/govuk_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8261a5b05d0c412e112a43abb67e4ac789c51ba3cde36e46fca2b7a1c30e8f5b
|
4
|
+
data.tar.gz: d63983757c6e6a931517e49944c9b3b787ce81c64d0093133de2f840de3fa8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 679df4b8c55c9bccfdd71a6faff58437614c29babcc0000aca43325c43fe75ae5469b40a7b1ff6229bc11e0a5fe696db71cdbff25f8133234ba94496309d9c1a
|
7
|
+
data.tar.gz: 83bab36a10d657c8719df4ab98fcfe0498d33bd8d22fd275e3f0a7c49c5533eb04be41387506769575586565cae541b0387be85eef6f82f931fc1f2f5e21bc0c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -14,12 +14,27 @@ And then execute:
|
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
17
|
-
Somewhere in your `spec_helper` put:
|
17
|
+
Somewhere in your `spec_helper`, `rails_helper`, or `spec/support/govuk_test.rb` put:
|
18
18
|
|
19
19
|
```rb
|
20
20
|
GovukTest.configure
|
21
21
|
```
|
22
22
|
|
23
|
+
It's also possible to pass optional arguments `:chrome_options` and/or `:window_size `
|
24
|
+
to `GovukTest.configure`:
|
25
|
+
|
26
|
+
```rb
|
27
|
+
GovukTest.configure(chrome_options: { some_key: "some value" })
|
28
|
+
|
29
|
+
# or
|
30
|
+
|
31
|
+
GovukTest.configure(window_size: "1366,768")
|
32
|
+
|
33
|
+
# or
|
34
|
+
|
35
|
+
GovukTest.configure(chrome_options: { some_key: "some value" }, window_size: "800,600")
|
36
|
+
```
|
37
|
+
|
23
38
|
## License
|
24
39
|
|
25
40
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/govuk_test.rb
CHANGED
@@ -23,7 +23,7 @@ module GovukTest
|
|
23
23
|
|
24
24
|
Capybara.register_driver :headless_chrome do |app|
|
25
25
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
|
26
|
-
chromeOptions: { args: chrome_options }
|
26
|
+
chromeOptions: { args: chrome_options }.merge(options.fetch(:chrome_options, {}))
|
27
27
|
)
|
28
28
|
|
29
29
|
Capybara::Selenium::Driver.new(
|
data/lib/govuk_test/version.rb
CHANGED
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.
|
4
|
+
version: 0.4.4
|
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-
|
11
|
+
date: 2019-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|