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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18474bfbb55c70f00605b094d91984ed583dc453
4
- data.tar.gz: 5720d82232f259549103a9bcc764d56ed11fab79
3
+ metadata.gz: deb02ae4e64ef50d8e25636153612fafff21d485
4
+ data.tar.gz: a9ffba9a8db8a463a011cd342616ed452b46ab7f
5
5
  SHA512:
6
- metadata.gz: 4195586a3e90136a9029e4df8670f785208f049be7d80f78b815eb3158d6142db21598e8c357ac05663893305932fbe57bef22e5c8e68e0ecac8707ad985b5b0
7
- data.tar.gz: b9875cb1350159153b96085a07f81c0317e132290918a4e7f32caa4736106c8a95ff9fca0b0db2bba66971c2709e25f5adc08c125b27a409f2c8144170bef071
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] = { name => value }
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
@@ -1,3 +1,3 @@
1
1
  module GovukAbTesting
2
- VERSION = "2.3.0".freeze
2
+ VERSION = "2.3.1".freeze
3
3
  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.0
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-05-12 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake