提交 752e8172 编写于 作者: Y yui-knk

Remove needless restoring of `default_charset`

`default_charset` is not changed in this test case,
so we do not need to backup an original value and
restore it.
上级 58f10a31
......@@ -294,13 +294,8 @@ def test_only_set_charset_still_defaults_to_text_html
end
test "read content type with default charset utf-8" do
original = ActionDispatch::Response.default_charset
begin
resp = ActionDispatch::Response.new(200, "Content-Type" => "text/xml")
assert_equal("utf-8", resp.charset)
ensure
ActionDispatch::Response.default_charset = original
end
resp = ActionDispatch::Response.new(200, "Content-Type" => "text/xml")
assert_equal("utf-8", resp.charset)
end
test "read content type with charset utf-16" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册