vendor/bundle/ruby/1.8/gems/rspec-mocks-2.9.0/lib/rspec/mocks/message_expectation.rb
# Expect a message to be received exactly two times.
#
# @example
#
#   car.should_receive(:go).twice
Expect a message to be received exactly two times.
Expect a message to be received exactly two times .
def twice(&block)
        @method_block = block if block
        set_expected_received_count :exactly, 2
        self
      end
def twice ( & block ) @method_block = block if block set_expected_received_count :exactly , 2 self end
Expect a message to be received exactly two times.
Expect a message to be received exactly two times .
block
example
None