class Mocha::Expectation

def yields(*parameters)

Other tags:
    Example: Yield different parameters on different invocations of the expected method. -
    Example: Yield parameters when expected method is invoked. -
    Example: Yield when expected method is invoked. -

Other tags:
    See: #then -

Returns:
  • (Expectation) - the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.

Parameters:
  • parameters (*Array) -- parameters to be yielded.
def yields(*parameters)
  multiple_yields(parameters)
end