vendor/gems/flexmock-0.8.5/lib/flexmock/ordering.rb
def flexmock_validate_order(method_name, order_number)
      FlexMock.check("method #{method_name} called out of order " +
        "(expected order #{order_number}, was #{flexmock_current_order})") {
        order_number >= self.flexmock_current_order
      }
      self.flexmock_current_order = order_number
    end
# Allocate the next available order number.
Allocate the next available order number.
Allocate the next available order number .
def flexmock_validate_order(method_name, order_number)
      FlexMock.check("method #{method_name} called out of order " +
        "(expected order #{order_number}, was #{flexmock_current_order})") {
        order_number >= self.flexmock_current_order
      }
      self.flexmock_current_order = order_number
    end
def flexmock_validate_order ( method_name , order_number ) FlexMock . check ( "method #{method_name} called out of order " + "(expected order #{order_number}, was #{flexmock_current_order})" ) { order_number >= self . flexmock_current_order } self . flexmock_current_order = order_number end
Allocate the next available order number.
Allocate the next available order number .
method_name
order_number