mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Merge pull request #562 from johlym/patch-1
Update README to mention .clear_configuration
This commit is contained in:
commit
a92513fb3e
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