CHANGELOG.md in govuk_ab_testing-2.3.1 vs CHANGELOG.md in govuk_ab_testing-2.4.0
- old
+ new
@@ -1,4 +1,18 @@
+## 2.4.0
+
+* Add two new optional parameters to `GovukAbTesting::AbTest`:
+ `allowed_variants` and `control_variant`. These allow us to override the
+ traditional naming of the A/B tests and also setup a multivariate test if
+ needed.
+* Add new method to `RequestedVariant` to query if a user is in a given variant.
+ The method is `variant?(name)`, where `name` is the name of the variant.
+ This new method allows for generic variant names, which are useful when
+ reusing A/B testing cookies/headers. If the cookie name and header name are
+ generic, the variant value should provide details on what test is running.
+* Add deprecation warnings to `variant_a?` and `variant_b?`, as they will be
+ replaced by the method `variant?(name)`.
+
## 2.3.1
* Fix bug in order to allow us to set multiple headers (i.e. A/B tests) in a
test using Capybara. This is important when running multiple A/B tests at
once.