ruby-changes:45483
From: nobu <ko1@a...>
Date: Tue, 7 Feb 2017 12:58:11 +0900 (JST)
Subject: [ruby-changes:45483] nobu:r57556 (trunk): test/unit.rb: defined
nobu 2017-02-07 12:58:07 +0900 (Tue, 07 Feb 2017) New Revision: 57556 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57556 Log: test/unit.rb: defined * test/lib/test/unit.rb (Test::Unit::Statistics#record): check if @longest is set first. Modified files: trunk/test/lib/test/unit.rb Index: test/lib/test/unit.rb =================================================================== --- test/lib/test/unit.rb (revision 57555) +++ test/lib/test/unit.rb (revision 57556) @@ -601,7 +601,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L601 def run(*args) result = super - if @longest + if defined?(@longest) and @longest @longest.each {|suite, method, assertions, time, error| printf "%5.2fsec(%d): %s#%s\n", time, assertions, suite, method } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/