module Mocks::DSL::CanSyntax
Defined in:
mocks/dsl/can_syntax.crInstance Method Summary
-
#can(stub : Stub) : Nil
Applies a stub to an object.
-
#can(collection : StubCollection) : Nil
Applies multiple stubs to an object.
Instance Method Detail
Applies a stub to an object. Begins the fluent language for defining stubs for an object.
dbl.can receive(:foo)
def can(collection : StubCollection) : Nil
#
Applies multiple stubs to an object.
dbl.can receive(answer: 42, foo: "bar")