Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix broken encoding test

  • Loading branch information...
commit 4c9dec4f2b68a52edc3346ade2ca3be45e273c2e 1 parent 289fe76
@arunagw arunagw authored carlosantoniodasilva committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/test/template/template_test.rb
View
2  actionpack/test/template/template_test.rb
@@ -123,7 +123,7 @@ def test_error_when_template_isnt_valid_utf8
def with_external_encoding(encoding)
old = Encoding.default_external
- Encoding::Converter.new old, encoding
+ Encoding::Converter.new old, encoding if old != encoding
silence_warnings { Encoding.default_external = encoding }
yield
ensure
Please sign in to comment.
Something went wrong with that request. Please try again.