summaryrefslogtreecommitdiff
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index bbe84cd9ff..b36b8b7810 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -3094,18 +3094,6 @@ class TestModule < Test::Unit::TestCase
assert_match(/::Foo$/, mod.name, '[Bug #14895]')
end
- def test_include_allocated
- assert_raise(ArgumentError) do
- Module.new {include Module.allocate}
- end
- assert_raise(ArgumentError) do
- Module.new {prepend Module.allocate}
- end
- assert_raise(ArgumentError) do
- Object.new.extend Module.allocate
- end
- end
-
private
def assert_top_method_is_private(method)