[前][次][番号順一覧][スレッド一覧]

ruby-changes:37053

From: nobu <ko1@a...>
Date: Sun, 4 Jan 2015 11:15:09 +0900 (JST)
Subject: [ruby-changes:37053] nobu:r49134 (trunk): testcase.rb: call super

nobu	2015-01-04 11:15:03 +0900 (Sun, 04 Jan 2015)

  New Revision: 49134

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49134

  Log:
    testcase.rb: call super
    
    * test/lib/test/unit/testcase.rb (method_added): hook methods
      should call super.

  Modified files:
    trunk/test/lib/test/unit/testcase.rb
Index: test/lib/test/unit/testcase.rb
===================================================================
--- test/lib/test/unit/testcase.rb	(revision 49133)
+++ test/lib/test/unit/testcase.rb	(revision 49134)
@@ -22,6 +22,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/testcase.rb#L22
       end
 
       def self.method_added(name)
+        super
         return unless name.to_s.start_with?("test_")
         @test_methods ||= {}
         if @test_methods[name]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]