mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
committed by
Joshua Peek
parent
5b92dcb675
commit
8423bb6a68
@@ -206,8 +206,7 @@ class MultipartParamsParsingTest < ActionController::IntegrationTest
|
||||
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 @@ class UrlEncodedParamsParsingTest < ActionController::IntegrationTest
|
||||
end
|
||||
|
||||
def call(env)
|
||||
req = Rack::Request.new(env)
|
||||
req.params # Parse params
|
||||
env['rack.input'].read
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user