diff --git a/test/ruby/test_super.rb b/test/ruby/test_super.rb index 30cc3d8e86..82d6e19ec4 100644 --- a/test/ruby/test_super.rb +++ b/test/ruby/test_super.rb @@ -448,7 +448,7 @@ class TestSuper < Test::Unit::TestCase def foo; super end end - m = a.instance_method(:foo).bind(Object.new.extend(a)) + m = a.instance_method(:foo).bind(Object.new) assert_raise(NoMethodError, bug9377) do m.call end