We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3675e8 commit 44d1febCopy full SHA for 44d1feb
1 file changed
test/ruby/test_module.rb
@@ -412,16 +412,6 @@ def test_constants
412
assert_equal([:MIXIN, :USER], User.constants.sort)
413
end
414
415
- def test_initialize_copy
416
- mod = Module.new { define_method(:foo) {:first} }
417
- klass = Class.new { include mod }
418
- instance = klass.new
419
- assert_equal(:first, instance.foo)
420
- new_mod = Module.new { define_method(:foo) { :second } }
421
- 4.times { GC.start }
422
- assert_equal(:first, instance.foo) # [BUG] unreachable
423
- end
424
-
425
def test_initialize_copy_empty
426
m = Module.new do
427
def x
0 commit comments