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