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