class

Mocks::StubCollection(T)

Inherits Reference < Object

Multiple stubs that can be applied to a stubbable object. T must be a NamedTuple.

Constructors

new(stubs : T)

Creates a new stub collection.

Source

Instance methods

apply(proxy) : Nil

Applies the stubs in the collection to a registry proxy.

Source