Fix premature call of after_all hook

This commit is contained in:
Michael Miller 2021-06-05 22:44:34 -06:00
parent b738b6b3ff
commit b9d77321b3
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436

View file

@ -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|