class RSpec::Core::RakeTask

def rspec_load_path

def rspec_load_path
  @rspec_load_path ||= begin
    core_and_support = $LOAD_PATH.grep(
      /#{File::SEPARATOR}rspec-(core|support)[^#{File::SEPARATOR}]*#{File::SEPARATOR}lib/
    ).uniq
    "-I#{core_and_support.map { |file| escape file }.join(File::PATH_SEPARATOR)}"
  end
end