Remove parameter from start_dump and close events

This commit is contained in:
Michael Miller 2021-05-16 10:51:50 -06:00
parent ba2922e655
commit 9a62c1386a
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
3 changed files with 7 additions and 7 deletions

View file

@ -55,8 +55,8 @@ module Spectator::Formatting
end end
# :ditto: # :ditto:
def start_dump(notification) def start_dump
@formatters.each(&.start_dump(notification)) @formatters.each(&.start_dump)
end end
# :ditto: # :ditto:
@ -80,8 +80,8 @@ module Spectator::Formatting
end end
# :ditto: # :ditto:
def close(notification) def close
@formatters.each(&.close(notification)) @formatters.each(&.close)
end end
end end
end end

View file

@ -90,7 +90,7 @@ module Spectator::Formatting
# Invoked after all examples finished. # Invoked after all examples finished.
# Indicates that summarized report data is about to be produced. # Indicates that summarized report data is about to be produced.
# This method is called after `#stop` and before `#dump_pending`. # This method is called after `#stop` and before `#dump_pending`.
def start_dump(_notification) def start_dump
end end
# Invoked after testing completes with a list of pending examples. # Invoked after testing completes with a list of pending examples.
@ -118,7 +118,7 @@ module Spectator::Formatting
# Invoked at the end of the program. # Invoked at the end of the program.
# Allows the formatter to perform any cleanup and teardown. # Allows the formatter to perform any cleanup and teardown.
def close(_notification) def close
end end
end end
end end

View file

@ -38,7 +38,7 @@ module Spectator
# Triggers the 'close' event. # Triggers the 'close' event.
# See `Formatting::Formatter#close` # See `Formatting::Formatter#close`
private def close private def close
formatter.close(nil) formatter.close
end end
# Provides methods for the various result types. # Provides methods for the various result types.