Skip to content

Commit

Permalink
testcase.rb: call super
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Jan 4, 2015
1 parent 49243b9 commit cf0006e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/lib/test/unit/testcase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def self.test_order
end

def self.method_added(name)
super
return unless name.to_s.start_with?("test_")
@test_methods ||= {}
if @test_methods[name]
Expand Down

0 comments on commit cf0006e

Please sign in to comment.