class Spectator::Mocks::StubCollection(T)
- Spectator::Mocks::StubCollection(T)
- Reference
- Object
Overview
Multiple stubs that can be applied to a stubbable object.
T must be a NamedTuple
.
Defined in:
spectator/mocks/stub_collection.crConstructors
-
.new(stubs : T)
Creates a new stub collection.
Instance Method Summary
-
#apply(proxy) : Nil
Applies the stubs in the collection to a registry proxy.