module Spectator::StubbedType
Overview
Defines stubbing functionality at the type level (classes and structs).
This module is intended to be extended when a type includes Stubbable
.
Defined in:
spectator/mocks/stubbed_type.crInstance Method Summary
- #_spectator_abstract_stub_fallback(call : MethodCall, type)
- #_spectator_abstract_stub_fallback(call : MethodCall)
- #_spectator_clear_calls : Nil
- #_spectator_clear_stubs : Nil
- #_spectator_define_stub(stub : Stub) : Nil
- #_spectator_find_stub(call : MethodCall) : Stub | Nil
- #_spectator_record_call(call : MethodCall) : Nil
- #_spectator_remove_stub(stub : Stub) : Nil
-
#_spectator_reset : Nil
Clears all previously defined calls and stubs.
- #_spectator_stub_fallback(call : MethodCall, type, &)
- #_spectator_stub_fallback(call : MethodCall, &)
- #_spectator_stub_for_method?(method : Symbol) : Bool