From 05b0c4da3d936afc214d2d9101e1e9fda8d95a05 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 13 Jul 2009 16:32:00 +0000 Subject: Follow tests for changes of ENV's encoding. * test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of ENV is now locale encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_m17n.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index eb9aa7c93..cbab1f669 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -1132,9 +1132,10 @@ class TestM17N < Test::Unit::TestCase end def test_env + locale_encoding = Encoding.find("locale") ENV.each {|k, v| - assert_equal(Encoding::ASCII_8BIT, k.encoding) - assert_equal(Encoding::ASCII_8BIT, v.encoding) + assert_equal(locale_encoding, k.encoding) + assert_equal(locale_encoding, v.encoding) } end -- cgit