govuk_ab_testing 1.0.1 → 1.0.2
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 -1
- data/lib/govuk_ab_testing/minitest_helpers.rb +5 -3
- 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: 2b77eb483d96fe7cf122323876be63428b7acd7e
|
4
|
+
data.tar.gz: 3dc5d675e80993664b6b17f70b59f6758150face
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8bb081b41576da8edcfab5f9883e037b3b48046e3c78a33df4f8cbca945a3a95b270f77f75281b973c5716574bf7b9ec488c70a051d0b12cdf6349079b5c3e5
|
7
|
+
data.tar.gz: 161c6619457164b03af84126fdd8c6df48f700a82b9bbac26cfc3315f84284389f4689245f1ec20ef00392d35172c6d0b5d9264f4dfad5dd39508312e0e532df
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 1.0.2
|
2
|
+
|
3
|
+
* Ensure `assert_response_not_modified_for_ab_test` test helper works with all
|
4
|
+
test frameworks
|
5
|
+
|
1
6
|
## 1.0.1
|
2
7
|
|
3
8
|
* Stop memoising meta tags so `with_variant` can be used multiple times in the
|
@@ -7,7 +12,7 @@
|
|
7
12
|
|
8
13
|
* Pass in request headers instead of the actual request to RequestedVariant.
|
9
14
|
This is a breaking change.
|
10
|
-
*
|
15
|
+
* Split testing framework helpers from acceptance test frameworks. This means we
|
11
16
|
can now use a combination of RSpec/Minitest and Capybara/ActiveSupport test
|
12
17
|
cases.
|
13
18
|
|
@@ -56,10 +56,12 @@ module GovukAbTesting
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def assert_response_not_modified_for_ab_test
|
59
|
-
assert_nil response
|
60
|
-
"`Vary` header is being added to a page which
|
59
|
+
assert_nil acceptance_test_framework.vary_header(response),
|
60
|
+
"`Vary` header is being added to a page which should not be modified by the A/B test"
|
61
61
|
|
62
|
-
|
62
|
+
meta_tags = acceptance_test_framework.analytics_meta_tags
|
63
|
+
assert_equal(0, meta_tags.count,
|
64
|
+
"A/B meta tag is being added to a page which should not be modified by the A/B test")
|
63
65
|
end
|
64
66
|
end
|
65
67
|
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: 1.0.
|
4
|
+
version: 1.0.2
|
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-03-
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|