From edcb5118e66c0cda3748fd7718151eb41ad3caa6 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 31 Jul 2021 15:02:21 -0600 Subject: [PATCH] Show pending count only if there are pending examples --- src/spectator/formatting/components/totals.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spectator/formatting/components/totals.cr b/src/spectator/formatting/components/totals.cr index 6071e39..bd65ead 100644 --- a/src/spectator/formatting/components/totals.cr +++ b/src/spectator/formatting/components/totals.cr @@ -38,7 +38,9 @@ module Spectator::Formatting::Components io << " (" << @errors << " errors)" end - io << ", " << @pending << " pending" + if @pending > 1 + io << ", " << @pending << " pending" + end end end end