class Spectator::TestContext

Defined in:

spectator/test_context.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(parent : TestContext | Nil, hooks : ExampleHooks, conditions : ExampleConditions, values : TestValues, stubs : Hash(String, Deque(Mocks::MethodStub))) #

[View source]

Instance Method Detail

def parent #

[View source]
def parent? : Spectator::TestContext? #

[View source]
def run_after_hooks(example : Example) #

[View source]
def run_before_hooks(example : Example) #

[View source]
def run_post_conditions(example) #

[View source]
def run_pre_conditions(example) #

[View source]
def stubs : Hash(String, Deque(Mocks::MethodStub)) #

[View source]
def values : Spectator::TestValues #

[View source]
def wrap_around_each_hooks(test, &block : -> ) #

[View source]