summaryrefslogtreecommitdiff
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-20 07:38:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-20 07:38:53 +0000
commit3136025cd14f6750f5e6781612771140452ea0ed (patch)
tree15de0aba02df8eddfdd59ee5b256255b7e875898 /test/ruby/test_module.rb
parentc1397c573e0463dad6a395078b6aa267e85400ea (diff)
test_module.rb: test with UTF-8
* test/ruby/test_module.rb (test_uninitialized_instance_variable): test with UTF-8 default external encoding for non-locale environments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 5a0d819fb7..324d45fb7a 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1829,7 +1829,10 @@ class TestModule < Test::Unit::TestCase
name = "@\u{5909 6570}"
assert_warning(/instance variable #{name} not initialized/) do
- assert_nil(a.instance_eval(name))
+ val = EnvUtil.with_default_external(Encoding::UTF_8) {
+ a.instance_eval(name)
+ }
+ assert_nil(val)
end
end