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:
parent
406c5252a2
commit
8dedf08b52
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue