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) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Instance Method Detail

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

Lookup the example with the specified index.


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

Text that describes the context or test.


[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]
def full_description #

[View source]
abstract def source : Source #

[View source]
abstract def symbolic? : Bool #

Indicates that the component references a type or method.


[View source]