diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-20 07:38:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-20 07:38:53 +0000 |
commit | 3136025cd14f6750f5e6781612771140452ea0ed (patch) | |
tree | 15de0aba02df8eddfdd59ee5b256255b7e875898 /test/ruby | |
parent | c1397c573e0463dad6a395078b6aa267e85400ea (diff) | |
download | ruby-3136025cd14f6750f5e6781612771140452ea0ed.tar.gz |
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')
-rw-r--r-- | test/ruby/test_module.rb | 5 |
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 |