From acfe9d2808873285f06100ef4fe0dd7c541ac604 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Fri, 22 Mar 2019 13:53:06 -0600 Subject: [PATCH] Conditionally remove blank lines --- src/spectator/formatting/suite_summary.cr | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/spectator/formatting/suite_summary.cr b/src/spectator/formatting/suite_summary.cr index 496fd2c..e2b57c1 100644 --- a/src/spectator/formatting/suite_summary.cr +++ b/src/spectator/formatting/suite_summary.cr @@ -11,8 +11,10 @@ module Spectator::Formatting # At the end, the totals and runtime are printed. def end_suite(report) ran_anything = report.examples_ran > 0 - @io.puts - @io.puts + if ran_anything + @io.puts if is_a?(DotsFormatter) + @io.puts + end failures(report.failures) if report.failed? && ran_anything stats(report) remaining(report) if report.remaining?