aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_class.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-23 11:58:39 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-23 11:58:39 +0000
commit180a2fbf9d954d0d426fca7999fee7407a7d1eaf (patch)
tree3b1d0d61686fa14f20d6a4d353784c28e7ca0c11 /test/ruby/test_class.rb
parent1e73d66f6b1f70f87e2745ed529e1840b03577dc (diff)
downloadruby-180a2fbf9d954d0d426fca7999fee7407a7d1eaf.tar.gz
Test for r36803's singleton_class_of.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r--test/ruby/test_class.rb1
1 files changed, 1 insertions, 0 deletions
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), [])