aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_class.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-24 15:00:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-24 15:00:57 +0000
commitc0a7c893030b2ff6a28247643a2395a8436fdb6b (patch)
treee54e3b57aa288bc8028679b133cf2a2fbd7012a2 /test/ruby/test_class.rb
parent63cd3e2b3ac4683f6a001b1a244c12e9fd651b55 (diff)
downloadruby-c0a7c893030b2ff6a28247643a2395a8436fdb6b.tar.gz
test_class.rb: fix encoding
* test/ruby/test_class.rb (test_namescope_error_message): fix encoding to UTF-8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r--test/ruby/test_class.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 4f4091d299..f84c2d7a78 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -541,7 +541,9 @@ class TestClass < Test::Unit::TestCase
m = Module.new
o = m.module_eval "class A\u{3042}; self; end.new"
assert_raise_with_message(TypeError, /A\u{3042}/) {
- o::Foo
+ EnvUtil.with_default_internal(Encoding::UTF_8) {
+ o::Foo
+ }
}
end