Merge pull request #272 from grzuy/rack_lint

Use Rack::Lint in tests to check any change continues to comply with the rack spec
This commit is contained in:
Gonzalo Rodriguez 2018-03-09 10:11:05 -03:00 committed by GitHub
commit 53b0561e7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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