struct

Spectator::TestBlock(ReturnType)

Inherits Spectator::TestExpression < Struct < Value < Object

Captures an block from a test and its label.

Constructors

new(proc : -> ReturnType, label : String)

Creates the block expression with a custom label. Typically the label is the code in the block/proc.

Source
new(proc : -> ReturnType)

Creates the block expression with a generic label. This is used for the "should" syntax and when the label doesn't matter.

Source

Class methods

create(proc : -> T, label : String) forall T
Source
create(proc : -> T) forall T
Source

Instance methods

inspect(io)

Reports complete information about the expression.

Source
value

Calls the block and retrieves the value.

Source