diff --git a/src/spectator/dsl/structure_dsl.cr b/src/spectator/dsl/structure_dsl.cr index 8df6052..685aa7c 100644 --- a/src/spectator/dsl/structure_dsl.cr +++ b/src/spectator/dsl/structure_dsl.cr @@ -320,6 +320,7 @@ module Spectator::DSL # is repeated for each element in `some_integers`. # `some_integers` is ficticous collection. # The collection will be iterated once. + # `#given` blocks can be nested, and work similarly to loops. macro given(collection, &block) # Figure out the name to use for the current collection element. # If a block argument is provided, use it, otherwise use "value". @@ -333,10 +334,6 @@ module Spectator::DSL {{collection}} end - # Method for getting the element type. - def %type - end - # Class for generating an array with the collection's contents. # This has to be a class that includes the parent module. # The collection could reference a helper method