1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

use Rack::Lint for testing

This commit is contained in:
Konstantin Haase 2011-05-24 11:00:16 +02:00
parent 7b70a7924e
commit f3477483ca

View file

@ -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