1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/unit.rb: defined

* test/lib/test/unit.rb (Test::Unit::Statistics#record): check if
  @longest is set first.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-02-07 03:58:07 +00:00
parent 406c5252a2
commit 8dedf08b52

View file

@ -601,7 +601,7 @@ module Test
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
}