govuk_ab_testing 0.1.1 → 0.1.2

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: 9bc5b6a51bbc98c18d8b98be5bef8dc8f1da357b
4
- data.tar.gz: 88fead7061b12d481392042abcf7c5538c719328
3
+ metadata.gz: 4d3b5ab50b3ac4b2eba97a72773a26010efd36d3
4
+ data.tar.gz: f9fcb6b2cd4b83fd38c7de312a79319976353eda
5
5
  SHA512:
6
- metadata.gz: a923e35735f9643f0f08c59a2486fd9dbf47098996f302136a6590bd82f092bf47bd795ae1268a965d883e234b62ed8ae46e711cbd1d4ad626be4eee42ac2ec1
7
- data.tar.gz: 7c4aaa517b641a8cab5437016bae55e4d3709323ebc3a3c53a4a7ef725efda1afbe9440475c66d2a1124a0bbb709c6755b90848152ca9eebfc19e8abed2f020f
6
+ metadata.gz: b24413b67052c7acd6db7b656c1bec81ef03e865381f5826c490d1d2343be1fc9191c80adcaf240125ba23d61c982f827381f8f88e1086f6ee01ac91c0f29853
7
+ data.tar.gz: 908b7618c8ae6adaffaecb80cd9fade61b741ab9be43e2ee82f398840271a868d6383d93ee0a96ca82f9b783a201928cebd221fe5884d6c4c6c4712f41cb7be4
data/README.md CHANGED
@@ -112,7 +112,8 @@ class PartyControllerTest < ActionController::TestCase
112
112
  include GovukAbTesting::MinitestHelpers
113
113
 
114
114
  should "show the original " do
115
- add_ab_test_header("your_ab_test_name", "B")
115
+ analytics_dimension = 123
116
+ setup_ab_variant("your_ab_test_name", "B", analytics_dimension)
116
117
 
117
118
  get :show
118
119
 
@@ -22,8 +22,8 @@ module GovukAbTesting
22
22
  end
23
23
  end
24
24
 
25
- def setup_ab_variant(ab_test_name, variant)
26
- ab_test = GovukAbTesting::AbTest.new(ab_test_name)
25
+ def setup_ab_variant(ab_test_name, variant, dimension)
26
+ ab_test = GovukAbTesting::AbTest.new(ab_test_name, dimension: dimension)
27
27
 
28
28
  @request.headers[ab_test.request_header] = variant
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module GovukAbTesting
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_ab_testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev