summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_locale.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/irb/test_locale.rb b/test/irb/test_locale.rb
index 89c43699cb..053cd234b9 100644
--- a/test/irb/test_locale.rb
+++ b/test/irb/test_locale.rb
@@ -31,7 +31,7 @@ module TestIRB
assert_equal("ja", locale.lang)
assert_equal("JP", locale.territory)
- assert_equal("UTF-8", locale.encoding.name)
+ assert_equal(Encoding::EUC_JP, locale.encoding)
assert_equal(nil, locale.modifier)
assert_include $stderr.string, "ja_JP.ujis is obsolete. use ja_JP.EUC-JP"
@@ -47,7 +47,7 @@ module TestIRB
assert_equal("ja", locale.lang)
assert_equal("JP", locale.territory)
- assert_equal("UTF-8", locale.encoding.name)
+ assert_equal(Encoding::EUC_JP, locale.encoding)
assert_equal(nil, locale.modifier)
assert_include $stderr.string, "ja_JP.euc is obsolete. use ja_JP.EUC-JP"