Skip to content
This repository
Browse code

Fix broken encoding test

  • Loading branch information...
commit 4c9dec4f2b68a52edc3346ade2ca3be45e273c2e 1 parent 289fe76
Arun Agrawal authored December 10, 2011 carlosantoniodasilva committed March 27, 2012
2  actionpack/test/template/template_test.rb
@@ -123,7 +123,7 @@ def test_error_when_template_isnt_valid_utf8
123 123
 
124 124
     def with_external_encoding(encoding)
125 125
       old = Encoding.default_external
126  
-      Encoding::Converter.new old, encoding
  126
+      Encoding::Converter.new old, encoding if old != encoding
127 127
       silence_warnings { Encoding.default_external = encoding }
128 128
       yield
129 129
     ensure

0 notes on commit 4c9dec4

Please sign in to comment.
Something went wrong with that request. Please try again.