Spectator::PendingExampleBuilder
Inherits Spectator::NodeBuilder / Reference / Object
Constructs pending examples.
Call #build to produce an Example.
Constructors
new(name : String | Nil = nil, location : Location | Nil = nil, metadata : Metadata | Nil = nil, reason : String | Nil = nil)
Creates the builder.
The name, location, and metadata will be applied to the Example produced by #build.
A default reason can be given in case the user didn't provide one.
Instance methods
build(parent = nil)
Constructs an example with previously defined attributes. The parent is an already constructed example group to nest the new example under. It can be nil if the new example won't have a parent.