class Mocks::StubCollection(T)

Overview

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

Defined in:

mocks/stub_collection.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(stubs : T) #

Creates a new stub collection.


[View source]

Instance Method Detail

def apply(proxy) : Nil #

Applies the stubs in the collection to a registry proxy.


[View source]