From ff49c674c653612888182af4e4dcbda220983d4f Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 30 Jan 2021 21:15:20 -0700 Subject: [PATCH] Fix around_each hook ordering when at the same level --- 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 c939460..c5f00c6 100644 --- a/src/spectator/example_group.cr +++ b/src/spectator/example_group.cr @@ -138,7 +138,7 @@ module Spectator # Wrap each hook with the next. outer = procsy - @around_hooks.each do |hook| + @around_hooks.reverse_each do |hook| outer = hook.wrap(outer) end