diff --git a/src/spectator/example_group.cr b/src/spectator/example_group.cr index 82bbbfa..80b6672 100644 --- a/src/spectator/example_group.cr +++ b/src/spectator/example_group.cr @@ -22,6 +22,11 @@ module Spectator @nodes.each { |node| yield node } end + # Checks if all examples and sub-groups have finished. + def finished? : Bool + @nodes.all?(&.finished?) + end + # Adds the specified *node* to the group. # Assigns the node to this group. # If the node already belongs to a group,