Spectator::ExampleGroupIteration(T)
Inherits Spectator::ExampleGroup / Indexable / Enumerable / Iterable / Spectator::Hooks / Spectator::Node / Reference / Object
Collection of examples and sub-groups for a single iteration of an iterative example group.
Constructors
new(item : T, name : Label = nil, location : Location | Nil = nil, group : ExampleGroup | Nil = nil, metadata : Metadata | Nil = nil)
Creates the example group iteration.
The element for the current iteration is provided by item.
The name describes the purpose of the group.
It can be a Symbol to describe a type.
This is typically a stringified form of item.
The location tracks where the group exists in source code.
This group will be assigned to the parent group if it is provided.
A set of metadata can be used for filtering and modifying example behavior.