From 180a2fbf9d954d0d426fca7999fee7407a7d1eaf Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 23 Aug 2012 11:58:39 +0000 Subject: Test for r36803's singleton_class_of. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_class.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_class.rb') diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index 88fe79bb11..f20719f2d7 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -187,6 +187,7 @@ class TestClass < Test::Unit::TestCase def test_singleton_class assert_raise(TypeError) { 1.extend(Module.new) } + assert_raise(TypeError) { 1.0.extend(Module.new) } assert_raise(TypeError) { :foo.extend(Module.new) } assert_in_out_err([], <<-INPUT, %w(:foo :foo true true), []) -- cgit v1.2.3