Update README to mention .clear_configuration

Adds a line to the Test case isolation section about `.clear_configuration`.
This commit is contained in:
Johnathan Lyman 2022-01-17 12:25:43 -08:00 committed by GitHub
parent 7bcd3b1529
commit 4e90859a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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