class Spectator::Mocks::Registry
- Spectator::Mocks::Registry
- Reference
- Object
Defined in:
spectator/mocks/registry.crConstructors
Instance Method Summary
- #add_stub(object, stub : MethodStub) : Nil
- #add_type_stub(type, stub : MethodStub) : Nil
- #calls_for(object, method_name : Symbol)
- #calls_for_type(type : T.class, method_name : Symbol) forall T
- #expect(object, stub : MethodStub) : Nil
- #expect(type : T.class, stub : MethodStub) : Nil forall T
- #expected?(object, call : MethodCall) : Bool
- #find_stub(object, call : MethodCall)
- #record_call(object, call : MethodCall) : Nil
- #reset : Nil
- #stubbed?(object, method_name : Symbol) : Bool