Merge pull request #562 from johlym/patch-1

Update README to mention .clear_configuration
This commit is contained in:
Gonzalo 2022-01-18 09:40:06 -03:00 committed by GitHub
commit a92513fb3e
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