Skip to content

Commit

Permalink
Merge pull request #272 from grzuy/rack_lint
Browse files Browse the repository at this point in the history
Use Rack::Lint in tests to check any change continues to comply with the rack spec
  • Loading branch information
grzuy authored Mar 9, 2018
2 parents 8603a3e + f27432d commit 53b0561
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53b0561

Please sign in to comment.