struct Spectator::TestWrapper
- Spectator::TestWrapper
- Struct
- Value
- Object
Overview
Stores information about a end-user test. Used to instantiate tests and run them.
Defined in:
spectator/test_wrapper.crConstructors
-
.new(description : String | Nil, source : Source, test : SpectatorTest, runner : TestMethod)
Creates a wrapper for the test.
Instance Method Summary
- #around_hook(context : TestContext)
- #call(method : TestMethod) : Nil
- #call(method, *args) : Nil
-
#description
Description the user provided for the test.
- #description?
- #run
-
#source : Spectator::Source
Location of the test in source code.
Instance methods inherited from class Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Constructor Detail
def self.new(description : String | Nil, source : Source, test : SpectatorTest, runner : TestMethod)
#
Creates a wrapper for the test.