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