Mocks::DSL::Expectations
Expectation DSL methods for the Spec framework.
Instance methods
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)