class Mocks::StubCollection(T)
- Mocks::StubCollection(T)
- Reference
- Object
Overview
Multiple stubs that can be applied to a stubbable object.
T must be a NamedTuple
.
Defined in:
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.