govuk_ab_testing 1.0.0 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf8724e8049a225793408d0becd62e990dbb1ba6
|
4
|
+
data.tar.gz: ac6096751d5d9ca190bea8a4afcf960f02629623
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62365454673a1f953879cd31a13d519effa971de501dc9be18de358f3cd5e372d62ebb90bf8d58d78eaa19b395f7e69d996ecc626a33272dd0e736b4442e83f5
|
7
|
+
data.tar.gz: a09800cd1ee970ca90fa77ed7f4f93f53fa1b8cfa428b9492c0eb3bb2f0efdddb3ab76a4843db6cb5b0009e4d44db2a9c8e2c322e466a265fce2f70be67cbe2e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -54,7 +54,7 @@ Now, let's say you have this controller:
|
|
54
54
|
class PartyController < ApplicationController
|
55
55
|
def show
|
56
56
|
ab_test = GovukAbTesting::AbTest.new("your_ab_test_name", dimension: 300)
|
57
|
-
@requested_variant = ab_test.requested_variant(request)
|
57
|
+
@requested_variant = ab_test.requested_variant(request.headers)
|
58
58
|
@requested_variant.configure_response(response)
|
59
59
|
|
60
60
|
if @requested_variant.variant_b?
|
@@ -132,7 +132,7 @@ class PartyControllerTest < ActionController::TestCase
|
|
132
132
|
|
133
133
|
get :show
|
134
134
|
|
135
|
-
|
135
|
+
assert_response_not_modified_for_ab_test
|
136
136
|
end
|
137
137
|
end
|
138
138
|
```
|