class RSpec::Mocks::MethodDouble

def original_method_from_ancestry

In Ruby 2.1, ancestors include the correct ancestors, including the singleton classes
def original_method_from_ancestry
  # Lookup in the ancestry, skipping over the singleton class itself
  original_method_from_ancestor(object_singleton_class.ancestors.drop(1))
end