mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +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
|
def app
|
||||||
Rack::Builder.new {
|
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::Attack
|
||||||
|
use Rack::Lint
|
||||||
|
|
||||||
run lambda {|env| [200, {}, ['Hello World']]}
|
run lambda {|env| [200, {}, ['Hello World']]}
|
||||||
}.to_app
|
}.to_app
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue