class Spectator::Mocks::Registry

Defined in:

spectator/mocks/registry.cr

Instance Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

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 exit_handled? : Bool #

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

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

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

[View source]
def find_stub(type : T.class, call : MethodCall) forall T #

[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]