class ParallelSpecs::SpecRuntimeLogger
def initialize(options, output=nil)
def initialize(options, output=nil) output ||= options # rspec 2 has output as first argument if String === output FileUtils.mkdir_p(File.dirname(output)) File.open(output, 'w'){} # overwrite previous results @output = File.open(output, 'a') elsif File === output output.close # close file opened with 'w' @output = File.open(output.path, 'a') else @output = output end @example_times = Hash.new(0) @failed_examples = [] # only needed for rspec 2 end