class Spectator::Mocks::Registry

Defined in:

spectator/mocks/registry.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(context : TestContext) #

[View source]

Instance Method Detail

def add_stub(object, stub : MethodStub) : Nil #

[View source]
def add_type_stub(type, stub : MethodStub) : Nil #

[View source]
def calls_for(object, method_name : Symbol) #

[View source]
def calls_for_type(type : T.class, method_name : Symbol) forall T #

[View source]
def expect(object, stub : MethodStub) : Nil #

[View source]
def expect(type : T.class, stub : MethodStub) : Nil forall T #

[View source]
def expected?(object, call : MethodCall) : Bool #

[View source]
def find_stub(object, call : MethodCall) #

[View source]
def record_call(object, call : MethodCall) : Nil #

[View source]
def reset : Nil #

[View source]
def stubbed?(object, method_name : Symbol) : Bool #

[View source]