Skip to content

Commit

Permalink
Use Rack::Lint in tests to check any change continues complying with …
Browse files Browse the repository at this point in the history
…the rack spec
  • Loading branch information
grzuy committed Jan 30, 2018
1 parent 9f79ab2 commit f27432d
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 f27432d

Please sign in to comment.