module Mocks::DSL::Expectations
Overview
Expectation DSL methods for the Spec framework.
Defined in:
mocks/dsl/expectations.crInstance Method Summary
-
#have_received(method : Symbol)
Creates an expectation that a method was called on an object.
Instance Method Detail
def have_received(method : Symbol)
#
Creates an expectation that a method was called on an object.
The method is the name of the method to expect was called.
This is also the start of a fluent interface for defining stubs.
See: ReceiveExpectation
Should syntax:
dbl.should have_received(:some_method)
dbl.should have_received(:some_method).with(42)