class ParallelSpecs::SpecFailuresLogger

def dump_failure(*args)

def dump_failure(*args)
  lock_output do
    @failed_examples.each.with_index do | example, i |
      spec_file = example.location.scan(/^[^:]+/)[0]
      spec_file.gsub!(%r(^.*?/spec/), './spec/')
      @output.puts "#{ParallelSpecs.executable} #{spec_file} -e \"#{example.description}\""
    end
  end
  @output.flush
end

def example_failed(example, count, failure)

def example_failed(example, count, failure)
  @failed_examples << example
end

def initialize(options, output=nil)

def initialize(options, output=nil)
  super
  @failed_examples = []
end