class RSpec::Mocks::AnyInstance::StubChain

def create_message_expectation_on(instance)

def create_message_expectation_on(instance)
  proxy = ::RSpec::Mocks.proxy_for(instance)
  expected_from = IGNORED_BACKTRACE_LINE
  stub = proxy.add_stub(expected_from, *@expectation_args, &@expectation_block)
  @recorder.stubs[stub.message] << stub
  stub
end