Bug #11425 ยป bug11425.patch
test/ruby/test_method.rb | ||
---|---|---|
assert_nil(m, bug11419)
|
||
end
|
||
def test_super_method_unbound_with_prepend
|
||
c = Class.new { def a; end }
|
||
m = Module.new { def a; end }
|
||
c.prepend m
|
||
super_meth = c.instance_method(:a).super_method
|
||
assert_not_nil super_meth
|
||
assert_equal c, super_meth.owner
|
||
end
|
||
def test_super_method_module
|
||
m1 = Module.new {def foo; end}
|
||
c1 = Class.new(Derived) {include m1; def foo; end}
|