提交 7960ae27 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #29767 from yui-knk/ac_test

Remove needless restoring of `default_charset`
......@@ -296,13 +296,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.
先完成此消息的编辑!
想要评论请 注册