struct Spectator::TestWrapper

Overview

Stores information about a end-user test. Used to instantiate tests and run them.

Defined in:

spectator/test_wrapper.cr

Constructors

Instance Method Summary

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.


[View source]

Instance Method Detail

def around_hook(context : TestContext) #

[View source]
def call(method : TestMethod) : Nil #

[View source]
def call(method, *args) : Nil #

[View source]
def description #

Description the user provided for the test.


[View source]
def description? #

[View source]
def run #

[View source]
def source : Spectator::Source #

Location of the test in source code.


[View source]