aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_class.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-21 10:32:33 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-21 10:32:33 +0000
commitb56077f64db044c8f27556e0c59e5021a3d97b16 (patch)
tree78aadef682063a7d684311fdf94f404106d734ce /test/ruby/test_class.rb
parenteaf5192f4a367a90483a4c25b1b6bf7d8338363e (diff)
downloadruby-b56077f64db044c8f27556e0c59e5021a3d97b16.tar.gz
revert r53228 because this patch breaks rubyspec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r--test/ruby/test_class.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 81c11e6f88..e60db37c15 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -556,24 +556,4 @@ class TestClass < Test::Unit::TestCase
}
end;
end
-
- def test_should_not_expose_singleton_class_without_metaclass
- assert_normal_exit %q{
- klass = Class.new(Array)
- # The metaclass of +klass+ should handle #bla since it should inherit methods from meta:meta:Array
- def (Array.singleton_class).bla; :bla; end
- hidden = ObjectSpace.each_object(Class).find { |c| klass.is_a? c and c.inspect.include? klass.inspect }
- raise unless hidden.nil?
- }, '[Bug #11740]'
-
- assert_normal_exit %q{
- klass = Class.new(Array)
- klass.singleton_class
- # The metaclass of +klass+ should handle #bla since it should inherit methods from meta:meta:Array
- def (Array.singleton_class).bla; :bla; end
- hidden = ObjectSpace.each_object(Class).find { |c| klass.is_a? c and c.inspect.include? klass.inspect }
- raise if hidden.nil?
- }, '[Bug #11740]'
-
- end
end