From e480901cdc63b3b79a34191f5d5db298edb511cf Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 7 Nov 2018 13:03:48 -0700 Subject: [PATCH] Note about nested #given blocks Remove unused and empty type method. Crystal syntax doesn't allow methods where a generic type is expected. --- src/spectator/dsl/structure_dsl.cr | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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