From 031e892dad46377e7d5ead6c90351b38ee484346 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 16 May 2021 16:56:19 -0600 Subject: [PATCH] Rename SummaryBlock to Stats --- .../formatting/components/{summary_block.cr => stats.cr} | 4 ++-- src/spectator/formatting/summary.cr | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/spectator/formatting/components/{summary_block.cr => stats.cr} (90%) diff --git a/src/spectator/formatting/components/summary_block.cr b/src/spectator/formatting/components/stats.cr similarity index 90% rename from src/spectator/formatting/components/summary_block.cr rename to src/spectator/formatting/components/stats.cr index 8dc2c94..29b1d5c 100644 --- a/src/spectator/formatting/components/summary_block.cr +++ b/src/spectator/formatting/components/stats.cr @@ -3,8 +3,8 @@ require "./runtime" require "./totals" module Spectator::Formatting::Components - # Summary information displayed at the end of a run. - struct SummaryBlock + # Statistics information displayed at the end of a run. + struct Stats def initialize(@report : Report) end diff --git a/src/spectator/formatting/summary.cr b/src/spectator/formatting/summary.cr index de82f01..0364755 100644 --- a/src/spectator/formatting/summary.cr +++ b/src/spectator/formatting/summary.cr @@ -43,7 +43,7 @@ module Spectator::Formatting # Invoked after testing completes with summarized information from the test suite. # Called after `#dump_failures` and before `#dump_profile`. def dump_summary(notification) - io.puts Components::SummaryBlock.new(notification.report) + io.puts Components::Stats.new(notification.report) end # Invoked after testing completes with profiling information.