class RSpec::Mocks::AnyInstance::ExpectationChain

def invocation_order

def invocation_order
  @invocation_order ||= {
    :should_receive => [nil],
    :with => [:should_receive],
    :and_return => [:with, :should_receive],
    :and_raise => [:with, :should_receive]
  }
end