We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7cdec commit 73f5306Copy full SHA for 73f5306
test/mri/tests/ruby/test_method.rb
@@ -1057,8 +1057,8 @@ def test_super_method_removed
1057
1058
def test_prepended_public_zsuper
1059
mod = EnvUtil.labeled_module("Mod") {private def foo; :ok end}
1060
- mods = [mod]
1061
obj = Object.new.extend(mod)
+ mods = [obj.singleton_class]
1062
class << obj
1063
public :foo
1064
end
@@ -1299,7 +1299,7 @@ module M2
1299
::Object.prepend(M2)
1300
1301
m = Object.instance_method(:x)
1302
- assert_equal M, m.owner
+ assert_equal M2, m.owner
1303
end;
1304
1305
0 commit comments