From f27432df91f77a543430224d5ebdd7330eb8278b Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Tue, 30 Jan 2018 10:08:20 -0300 Subject: [PATCH] Use Rack::Lint in tests to check any change continues complying with the rack spec --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b7d535f..3974343 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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