From b9d77321b3a9000fa691c947e4670233286e78a8 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 5 Jun 2021 22:44:34 -0600 Subject: [PATCH] Fix premature call of after_all hook --- src/spectator/example_group.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/example_group.cr b/src/spectator/example_group.cr index 4c9ae9e..7acf234 100644 --- a/src/spectator/example_group.cr +++ b/src/spectator/example_group.cr @@ -64,7 +64,7 @@ module Spectator Log.trace { "Processing after_all hooks for #{self}" } call_hooks(hooks) - call_parent_hooks(:call_once_after_all) + call_parent_hooks(:call_once_after_all) if @group.try(&.finished?) end example_event before_each do |hooks, example|