diff --git a/src/spectator/example_group.cr b/src/spectator/example_group.cr index 6befc14..056950c 100644 --- a/src/spectator/example_group.cr +++ b/src/spectator/example_group.cr @@ -8,6 +8,8 @@ module Spectator include Events include Iterable(SpecNode) + @nodes = [] of SpecNode + group_event before_all do |hooks| Log.trace { "Processing before_all hooks for #{self}" } @@ -60,8 +62,6 @@ module Spectator end end - @nodes = [] of SpecNode - # Removes the specified *node* from the group. # The node will be unassigned from this group. def delete(node : SpecNode)