mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
63cd3e2b3a
commit
c0a7c89303
1 changed files with 3 additions and 1 deletions
|
@ -541,7 +541,9 @@ class TestClass < Test::Unit::TestCase
|
||||||
m = Module.new
|
m = Module.new
|
||||||
o = m.module_eval "class A\u{3042}; self; end.new"
|
o = m.module_eval "class A\u{3042}; self; end.new"
|
||||||
assert_raise_with_message(TypeError, /A\u{3042}/) {
|
assert_raise_with_message(TypeError, /A\u{3042}/) {
|
||||||
o::Foo
|
EnvUtil.with_default_internal(Encoding::UTF_8) {
|
||||||
|
o::Foo
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue