class RSpec::Mocks::MessageChain

def find_matching_stub

def find_matching_stub
  ::RSpec::Mocks.space.proxy_for(object).
    __send__(:find_matching_method_stub, chain.first.to_sym)
end