class RSpec::Mocks::MessageExpectation

def times(&block)

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

@example

Syntactic sugar for `exactly`, `at_least` and `at_most`
def times(&block)
  self.inner_implementation_action = block
  self
end