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.
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.
Class methods
create(proc : -> T, label : String) forall T
Sourcecreate(proc : -> T) forall T
Source