mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
49243b9944
commit
cf0006ea2b
1 changed files with 1 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue