Fix around_each hook ordering when at the same level

This commit is contained in:
Michael Miller 2021-01-30 21:15:20 -07:00
parent 0f44403053
commit ff49c674c6
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -138,7 +138,7 @@ module Spectator
# Wrap each hook with the next. # Wrap each hook with the next.
outer = procsy outer = procsy
@around_hooks.each do |hook| @around_hooks.reverse_each do |hook|
outer = hook.wrap(outer) outer = hook.wrap(outer)
end end