Permalink
Browse files

Merge pull request #29767 from yui-knk/ac_test

Remove needless restoring of `default_charset`
  • Loading branch information...
rafaelfranca committed Aug 8, 2017
2 parents 1e3c1ed + 752e817 commit 7960ae27c8eb147e1c183a97d3b87492f897cdd7
Showing with 2 additions and 7 deletions.
  1. +2 −7 actionpack/test/dispatch/response_test.rb
@@ -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

0 comments on commit 7960ae2

Please sign in to comment.