abstract class Spectator::ExampleComponent

Overview

Abstract base for all examples and collections of examples. This is used as the base node type for the composite design pattern.

Direct Known Subclasses

Defined in:

spectator/example_component.cr

Instance Method Summary

Instance methods inherited from class Object

should(matcher : Spectator::Matchers::Matcher) should, should_not(matcher : Spectator::Matchers::Matcher) should_not

Instance Method Detail

abstract def [](index : Int) : Example #

Lookup the example with the specified index.


[View source]
abstract def example_count : Int #

The number of examples in this instance.


[View source]
abstract def finished? : Bool #

Indicates whether the example (or group) has been completely run.


[View source]
abstract def symbolic? : Bool #

Indicates that the component references a type or method.


[View source]
abstract def what : Symbol | String #

Text that describes the context or test.


[View source]