Spectator::Mocks::Registry
Inherits Reference < Object
Constructors
new(context : TestContext)
SourceInstance methods
add_stub(object, stub : MethodStub) : Nil
Sourceadd_type_stub(type, stub : MethodStub) : Nil
Sourcecalls_for(object, method_name : Symbol)
Sourcecalls_for_type(type : T.class, method_name : Symbol) forall T
Sourceexpect(object, stub : MethodStub) : Nil
Sourceexpect(type : T.class, stub : MethodStub) : Nil forall T
Sourceexpected?(object, call : MethodCall) : Bool
Sourcefind_stub(object, call : MethodCall)
Sourcerecord_call(object, call : MethodCall) : Nil
Sourcereset
Sourcestubbed?(object, method_name : Symbol) : Bool
Source