Browse files

Fix broken encoding test

  • Loading branch information...
1 parent 289fe76 commit 4c9dec4f2b68a52edc3346ade2ca3be45e273c2e @arunagw arunagw committed with carlosantoniodasilva Dec 10, 2011
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

0 comments on commit 4c9dec4

Please sign in to comment.