class Mocha::Expectation
def with_block_given
- Example: Expected method must be called with a block. -
Returns:
-
(Expectation)
- the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
def with_block_given @block_matcher = BlockMatchers::BlockGiven.new self end