Permalink
Browse files

Fix broken encoding test

  • Loading branch information...
1 parent d06c3b3 commit 49bbdf29c2e91731f6ef06cc8031a3cef52c74ae @arunagw arunagw committed Dec 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/template/template_test.rb
@@ -170,7 +170,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 49bbdf2

Please sign in to comment.