class Spectator::ExampleIterator

Overview

Iterates through all examples in a group and its nested groups.

Included Modules

Defined in:

spectator/example_iterator.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Constructor Detail

def self.new(group : Iterable(ExampleComponent)) #

Creates a new iterator. The group is the example group to iterate through.


[View source]

Instance Method Detail

def next #

Retrieves the next Example. If there are none left, then Iterator::Stop is returned.


[View source]
def rewind #

Restart the iterator at the beginning.


[View source]