From 2316377c6e565063426eecc038431c48d2495a01 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 16 May 2021 17:08:15 -0600 Subject: [PATCH] Rename ExampleFilterCommand to ExampleCommand --- .../{example_filter_command.cr => example_command.cr} | 4 +++- src/spectator/formatting/components/stats.cr | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename src/spectator/formatting/components/{example_filter_command.cr => example_command.cr} (84%) diff --git a/src/spectator/formatting/components/example_filter_command.cr b/src/spectator/formatting/components/example_command.cr similarity index 84% rename from src/spectator/formatting/components/example_filter_command.cr rename to src/spectator/formatting/components/example_command.cr index 450fd63..648d8ea 100644 --- a/src/spectator/formatting/components/example_filter_command.cr +++ b/src/spectator/formatting/components/example_command.cr @@ -1,5 +1,7 @@ +require "./comment" + module Spectator::Formatting::Components - struct ExampleFilterCommand + struct ExampleCommand def initialize(@example : Example) end diff --git a/src/spectator/formatting/components/stats.cr b/src/spectator/formatting/components/stats.cr index 29b1d5c..4828c00 100644 --- a/src/spectator/formatting/components/stats.cr +++ b/src/spectator/formatting/components/stats.cr @@ -1,4 +1,4 @@ -require "./example_filter_command" +require "./example_command" require "./runtime" require "./totals" @@ -31,7 +31,7 @@ module Spectator::Formatting::Components io.puts "Failed examples:" io.puts failures.each do |failure| - io.puts ExampleFilterCommand.new(failure).colorize(:red) + io.puts ExampleCommand.new(failure).colorize(:red) end end end