From 9a62c1386a612c727a2308d6146a4f35a2a82b20 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 16 May 2021 10:51:50 -0600 Subject: [PATCH] Remove parameter from start_dump and close events --- src/spectator/formatting/broadcast_formatter.cr | 8 ++++---- src/spectator/formatting/formatter.cr | 4 ++-- src/spectator/spec/events.cr | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/spectator/formatting/broadcast_formatter.cr b/src/spectator/formatting/broadcast_formatter.cr index 47a2aae..0a9db22 100644 --- a/src/spectator/formatting/broadcast_formatter.cr +++ b/src/spectator/formatting/broadcast_formatter.cr @@ -55,8 +55,8 @@ module Spectator::Formatting end # :ditto: - def start_dump(notification) - @formatters.each(&.start_dump(notification)) + def start_dump + @formatters.each(&.start_dump) end # :ditto: @@ -80,8 +80,8 @@ module Spectator::Formatting end # :ditto: - def close(notification) - @formatters.each(&.close(notification)) + def close + @formatters.each(&.close) end end end diff --git a/src/spectator/formatting/formatter.cr b/src/spectator/formatting/formatter.cr index abdc500..0928de3 100644 --- a/src/spectator/formatting/formatter.cr +++ b/src/spectator/formatting/formatter.cr @@ -90,7 +90,7 @@ module Spectator::Formatting # Invoked after all examples finished. # Indicates that summarized report data is about to be produced. # This method is called after `#stop` and before `#dump_pending`. - def start_dump(_notification) + def start_dump end # Invoked after testing completes with a list of pending examples. @@ -118,7 +118,7 @@ module Spectator::Formatting # Invoked at the end of the program. # Allows the formatter to perform any cleanup and teardown. - def close(_notification) + def close end end end diff --git a/src/spectator/spec/events.cr b/src/spectator/spec/events.cr index 4ef8dff..6b298af 100644 --- a/src/spectator/spec/events.cr +++ b/src/spectator/spec/events.cr @@ -38,7 +38,7 @@ module Spectator # Triggers the 'close' event. # See `Formatting::Formatter#close` private def close - formatter.close(nil) + formatter.close end # Provides methods for the various result types.