Use Rack::Lint in tests to check any change continues complying with the rack spec

This commit is contained in:
Gonzalo Rodriguez 2018-01-30 10:08:20 -03:00
parent 9f79ab272e
commit f27432df91

View file

@ -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