aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/render_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-28 18:10:32 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-28 18:10:32 -0300
commitd1e976da7f8981c5cdbf8ee6520281fa78863f2f (patch)
tree090534a5aa8f69eb65770a1e1c5d5f36b7ffdf79 /actionpack/test/template/render_test.rb
parent523f98099d331908db6ab4c45f7657e61a8a4d5f (diff)
downloadrails-d1e976da7f8981c5cdbf8ee6520281fa78863f2f.tar.gz
rails-d1e976da7f8981c5cdbf8ee6520281fa78863f2f.tar.bz2
rails-d1e976da7f8981c5cdbf8ee6520281fa78863f2f.zip
Silence warnings here, only setting Encoding.default_external for testing.
Diffstat (limited to 'actionpack/test/template/render_test.rb')
-rw-r--r--actionpack/test/template/render_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb
index c17bec891b..205fdcf345 100644
--- a/actionpack/test/template/render_test.rb
+++ b/actionpack/test/template/render_test.rb
@@ -319,10 +319,11 @@ class LazyViewRenderTest < ActiveSupport::TestCase
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