mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-22 14:05:58 +00:00
Update README to mention .clear_configuration
Adds a line to the Test case isolation section about `.clear_configuration`.
This commit is contained in:
parent
7bcd3b1529
commit
4e90859a37
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ for more on how to do this.
|
||||||
|
|
||||||
### Test case isolation
|
### 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
|
## How it works
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue