Permalink
Browse files

Dont display test time for blank suites

  • Loading branch information...
1 parent 359ba96 commit b6085aeec5554b2872a58624651c1e1ce8c0ead9 @quirkey committed Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/minitest/display.rb
View
2 lib/minitest/display.rb
@@ -204,7 +204,7 @@ def _run_suite(suite, type)
total_time = Time.now - full_start_time
- if display.options[:suite_time]
+ if assertions.length > 0 && display.options[:suite_time]
print "\n#{' ' * suite_header.length}#{display.options[:suite_divider]}"
print "%.2f s" % total_time
puts

0 comments on commit b6085ae

Please sign in to comment.