aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_class.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-28 17:10:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-28 17:10:26 +0000
commit548b97e70c9115feaee8011a7b28c2a2f9660147 (patch)
tree31a9f8d6f033fdf463a1757cefd1142f36bd2327 /test/ruby/test_class.rb
parentb90a5f9334a84b46a49b0966ecd250c2e52a8312 (diff)
downloadruby-548b97e70c9115feaee8011a7b28c2a2f9660147.tar.gz
insns.def: preserve encoding
* insns.def (defineclass): preserve encoding of name in error messages for super class mismatch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r--test/ruby/test_class.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 27558e33dd..9c016dd693 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -369,6 +369,9 @@ class TestClass < Test::Unit::TestCase
end
end;
}
+ assert_raise_with_message(TypeError, /#{n}/) {
+ m.module_eval "class #{n} < Class.new; end"
+ }
end
def test_cloned_singleton_method_added