提交 aecf182a 编写于 作者: Y yuuji.yaginuma

add missing `as` to request kwargs of `ActionDispatch::IntegrationTest`

Follow up to #21671
上级 c34eefba
......@@ -300,7 +300,7 @@ def process_with_kwargs(http_method, path, *args)
end
end
REQUEST_KWARGS = %i(params headers env xhr)
REQUEST_KWARGS = %i(params headers env xhr as)
def kwarg_request?(args)
args[0].respond_to?(:keys) && args[0].keys.any? { |k| REQUEST_KWARGS.include?(k) }
end
......@@ -317,7 +317,8 @@ def non_kwarg_request_warning
params: { id: 1 },
headers: { 'X-Extra-Header' => '123' },
env: { 'action_dispatch.custom' => 'custom' },
xhr: true
xhr: true,
as: :json
MSG
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册