From f3477483cae2e03780a7dba6289698666da1d5de Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Tue, 24 May 2011 11:00:16 +0200 Subject: [PATCH] use Rack::Lint for testing --- rack-protection/spec/spec_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rack-protection/spec/spec_helper.rb b/rack-protection/spec/spec_helper.rb index 8f36f0c9..16fa1038 100644 --- a/rack-protection/spec/spec_helper.rb +++ b/rack-protection/spec/spec_helper.rb @@ -20,8 +20,9 @@ module TestHelpers end def mock_app(app = nil, &block) - app = block if app.nil? and block.arity == 1 - @app = app ? described_class.new(app) : Rack::Builder.new(&block).to_app + app = block if app.nil? and block.arity == 1 + app = app ? described_class.new(app) : Rack::Builder.new(&block).to_app + @app = Rack::Lint.new(app) end def env