Improve rewindable input test coverage so tests fail when you remove the middleware

Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
Mislav Marohnić 2009-04-17 19:35:03 -05:00 committed by Joshua Peek
parent 5b92dcb675
commit 8423bb6a68
2 changed files with 2 additions and 4 deletions

@ -206,8 +206,7 @@ def initialize(app)
end
def call(env)
req = Rack::Request.new(env)
req.params # Parse params
env['rack.input'].read
@app.call(env)
end
end

@ -150,8 +150,7 @@ def initialize(app)
end
def call(env)
req = Rack::Request.new(env)
req.params # Parse params
env['rack.input'].read
@app.call(env)
end
end