summaryrefslogtreecommitdiff
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r--test/ruby/test_method.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index e016662375..0ef913fd78 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -926,6 +926,11 @@ class TestMethod < Test::Unit::TestCase
assert_equal(m1.source_location, m2.source_location, bug)
end
+ def test_super_method_after_bind
+ assert_nil String.instance_method(:length).bind(String.new).super_method,
+ '[ruby-core:85231] [Bug #14421]'
+ end
+
def rest_parameter(*rest)
rest
end