class RSpec::Mocks::MessageExpectation

def exactly(n, &block)

dealer.should_receive(:deal_card).exactly(10).times

@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