class RSpec::Core::RakeTask

def rspec_load_path

def rspec_load_path
  @rspec_load_path ||= begin
    core_and_support = $LOAD_PATH.grep \
      %r{#{File::SEPARATOR}rspec-(core|support)[^#{File::SEPARATOR}]*#{File::SEPARATOR}lib}
    "-I#{core_and_support.map(&:shellescape).join(File::PATH_SEPARATOR)}"
  end
end