Spectator::Example::Procsy
Inherits Struct / Value / Object
Wraps an example to behave like a Proc.
This is typically used for an around_each hook.
Invoking #call or #run will run the example.
Constructors
new(example : Example, &proc : -> )
Creates the example proxy.
The example should be run eventually.
The proc defines the block of code to run when #call or #run is invoked.
Instance methods
to_s(io : IO) : Nil
Constructs the full name or description of the example. This prepends names of groups this example is part of.