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:
parent
7b70a7924e
commit
f3477483ca
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue