vendor/bundle/ruby/1.8/gems/rspec-mocks-2.8.0/lib/rspec/mocks/message_expectation.rb
def ordered(&block)
        @method_block = block if block
        @order_group.register(self)
        @ordered = true
        self
      end
# Expect messages to be received in a specific order.
#
# @example
#
#   api.should_receive(:prepare).ordered
#   api.should_receive(:run).ordered
#   api.should_receive(:finish).ordered
Expect messages to be received in a specific order.
Expect messages to be received in a specific order .
def ordered(&block)
        @method_block = block if block
        @order_group.register(self)
        @ordered = true
        self
      end
def ordered ( & block ) @method_block = block if block @order_group . register ( self ) @ordered = true self end
Expect messages to be received in a specific order.
Expect messages to be received in a specific order .
block
example
None