README.md in govuk_ab_testing-1.0.4 vs README.md in govuk_ab_testing-2.0.0
- old
+ new
@@ -130,11 +130,11 @@
should "show the original" do
setup_ab_variant("your_ab_test_name", "B") # optionally pass in a analytics dimension as the third argument
get :show
- assert_response_not_modified_for_ab_test
+ assert_response_not_modified_for_ab_test("your_ab_test_name")
end
end
```
There are some more fine-grained assertions which you can use to test a page
@@ -150,10 +150,10 @@
setup_ab_variant("your_ab_test_name", "B")
get :show
assert_response_is_cached_by_variant("your_ab_test_name")
- assert_page_not_tracked_in_ab_test
+ assert_page_not_tracked_in_ab_test("your_ab_test_name")
end
end
```
##### RSpec