summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 16:32:00 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 16:32:00 +0000
commit05b0c4da3d936afc214d2d9101e1e9fda8d95a05 (patch)
tree0e22d249ebc7ee4b4abf4b807e0fd45d8d91300d /test/ruby/test_m17n.rb
parent3cd9ae30d1349f32f6e8ba4ca45bc79c5e21f4a9 (diff)
downloadruby-05b0c4da3d936afc214d2d9101e1e9fda8d95a05.tar.gz
ruby-05b0c4da3d936afc214d2d9101e1e9fda8d95a05.tar.xz
ruby-05b0c4da3d936afc214d2d9101e1e9fda8d95a05.zip
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
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r--test/ruby/test_m17n.rb5
1 files changed, 3 insertions, 2 deletions
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