未验证 提交 125b71db 编写于 作者: B bogdanvlviv

Add `TestCaseTest#test_request_format_kwarg_doesnt_mutate_params` to master

Initially, the test was added to 5-0-stable in #32492
and a bit modified in #32506. This test ensures that request(in tests)
doesn't mutate params. It was fixed since v5.1.0.beta1 by
98b83095 and then on 5-0-stable by #32492.
This commit adds this test to master branch in order to prevent any
regressions.
上级 601e31b3
......@@ -740,6 +740,14 @@ def test_request_format_kwarg_overrides_params
assert_equal "application/json", @response.body
end
def test_request_format_kwarg_doesnt_mutate_params
params = { foo: "bar" }.freeze
assert_nothing_raised do
get :test_format, format: "json", params: params
end
end
def test_should_have_knowledge_of_client_side_cookie_state_even_if_they_are_not_set
cookies["foo"] = "bar"
get :no_op
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册