Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Silence warnings here, only setting Encoding.default_external for tes…

…ting.
  • Loading branch information...
commit d1e976da7f8981c5cdbf8ee6520281fa78863f2f 1 parent 523f980
@miloops miloops authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/test/template/render_test.rb
View
5 actionpack/test/template/render_test.rb
@@ -319,10 +319,11 @@ def test_render_utf8_template_with_partial_with_incompatible_encoding
end
def with_external_encoding(encoding)
- old, Encoding.default_external = Encoding.default_external, encoding
+ old = Encoding.default_external
+ silence_warnings { Encoding.default_external = encoding }
yield
ensure
- Encoding.default_external = old
+ silence_warnings { Encoding.default_external = old }
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.