From cf0006ea2ba60cf3cc6eb81bfcd40eccecf344af Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 4 Jan 2015 02:15:03 +0000 Subject: [PATCH] testcase.rb: call super * test/lib/test/unit/testcase.rb (method_added): hook methods should call super. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/test/unit/testcase.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lib/test/unit/testcase.rb b/test/lib/test/unit/testcase.rb index 984f08dd32..d6ea4fd2b1 100644 --- a/test/lib/test/unit/testcase.rb +++ b/test/lib/test/unit/testcase.rb @@ -22,6 +22,7 @@ module Test end def self.method_added(name) + super return unless name.to_s.start_with?("test_") @test_methods ||= {} if @test_methods[name]