module Spectator::Mocks::DSL::CanSyntax

Defined in:

spectator/mocks/dsl/can_syntax.cr

Instance Method Summary

Instance Method Detail

def can(stub : Stub) : Nil #

Applies a stub to an object. Begins the fluent language for defining stubs for an object.

dbl.can receive(:foo)

[View source]
def can(collection : StubCollection) : Nil #

Applies multiple stubs to an object.

dbl.can receive(answer: 42, foo: "bar")

[View source]