From 4e90859a37c11f414e2e51cdc72bb8903e8dc27e Mon Sep 17 00:00:00 2001 From: Johnathan Lyman Date: Mon, 17 Jan 2022 12:25:43 -0800 Subject: [PATCH] Update README to mention .clear_configuration Adds a line to the Test case isolation section about `.clear_configuration`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ed8d57..5a0fa25 100644 --- a/README.md +++ b/README.md @@ -407,7 +407,7 @@ for more on how to do this. ### Test case isolation -`Rack::Attack.reset!` can be used in your test suite to clear any Rack::Attack state between different test cases. +`Rack::Attack.reset!` can be used in your test suite to clear any Rack::Attack state between different test cases. If you're testing blocklist and safelist configurations, consider using `Rack::Attack.clear_configuration` to unset the values for those lists between test cases. ## How it works