mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
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:
parent
013f799c5e
commit
e480901cdc
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue