class ParallelSpecs

def self.spec_opts(rspec_version)

def self.spec_opts(rspec_version)
  options_file = ['spec/parallel_spec.opts', 'spec/spec.opts'].detect{|f| File.file?(f) }
  return unless options_file
  if rspec_version == 2
    # does not handle -O, so we inline the options
    File.read(options_file).tr("\n", ' ')
  else
    "-O #{options_file}"
  end
end