Note about nested #given blocks

Remove unused and empty type method.
Crystal syntax doesn't allow methods where a generic type is expected.
This commit is contained in:
Michael Miller 2018-11-07 13:03:48 -07:00
parent 013f799c5e
commit e480901cdc
1 changed files with 1 additions and 4 deletions

View File

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