class RSpec::Mocks::MessageExpectation
def exactly(n, &block)
@example
times.
Constrain a message expectation to be received a specific number of
def exactly(n, &block) self.inner_implementation_action = block set_expected_received_count :exactly, n self end