mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Use Rack::Lint in tests to check any change continues complying with the rack spec
This commit is contained in:
parent
9f79ab272e
commit
f27432df91
1 changed files with 4 additions and 0 deletions
|
|
@ -23,7 +23,11 @@ class MiniTest::Spec
|
|||
|
||||
def app
|
||||
Rack::Builder.new {
|
||||
# Use Rack::Lint to test that rack-attack is complying with the rack spec
|
||||
use Rack::Lint
|
||||
use Rack::Attack
|
||||
use Rack::Lint
|
||||
|
||||
run lambda {|env| [200, {}, ['Hello World']]}
|
||||
}.to_app
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue