govuk_ab_testing 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +8 -0
- data/lib/govuk_ab_testing/acceptance_tests/capybara.rb +2 -1
- data/lib/govuk_ab_testing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deb02ae4e64ef50d8e25636153612fafff21d485
|
4
|
+
data.tar.gz: a9ffba9a8db8a463a011cd342616ed452b46ab7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9ce66cf58ec982769c9061ec3f20e62ed7e2789408ae88e409b584f72df46a5580835a30db44c3078c47fe291c0a4136826404506bb9a92884307b2f454c20b
|
7
|
+
data.tar.gz: 74c8fc5a0d34a5a11630414ad828c47de97613c5c29768b22a5d4c8f7cb392899a2b79144a47dd97fdcfbee5407b83d4d8d98ed5102c98d2345b3ef9e1b6367d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 2.3.1
|
2
|
+
|
3
|
+
* Fix bug in order to allow us to set multiple headers (i.e. A/B tests) in a
|
4
|
+
test using Capybara. This is important when running multiple A/B tests at
|
5
|
+
once.
|
6
|
+
|
1
7
|
## 2.3.0
|
2
8
|
|
3
9
|
* Fix for Rails 5.0.2 - the Active Support acceptance tests used to memoize
|
data/README.md
CHANGED
@@ -194,6 +194,14 @@ of more than one.
|
|
194
194
|
|
195
195
|
`bundle exec rake`
|
196
196
|
|
197
|
+
### Testing in a browser
|
198
|
+
|
199
|
+
If you want to test this behaviour in a browser then you should use the
|
200
|
+
[GOV.UK Toolkit for Chrome](https://github.com/alphagov/govuk-toolkit-chrome).
|
201
|
+
|
202
|
+
This detects when you have a test running on a page and enables you to choose
|
203
|
+
between variants.
|
204
|
+
|
197
205
|
### Documentation
|
198
206
|
|
199
207
|
See [RubyDoc](http://www.rubydoc.info/gems/govuk_ab_testing) for some limited documentation.
|
@@ -16,7 +16,8 @@ module GovukAbTesting
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def set_header(name, value)
|
19
|
-
capybara_page.driver.options[:headers]
|
19
|
+
capybara_page.driver.options[:headers] ||= {}
|
20
|
+
capybara_page.driver.options[:headers][name] = value
|
20
21
|
capybara_page.driver.header(name, value)
|
21
22
|
@request_headers[name] = value
|
22
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_ab_testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.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: 2017-
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|