class ParallelSpecs::SpecLoggerBase
def close
def close @output.close if (IO === @output) & (@output != $stdout) end
def dump_failure(*args)
def dump_failure(*args) end
def dump_pending(*args)
def dump_pending(*args) end
def dump_summary(*args)
def dump_summary(*args) end
def example_failed(*args)
def example_failed(*args) end
def example_passed(example)
def example_passed(example) end
def example_pending(*args)
def example_pending(*args) end
def example_started(*args)
def example_started(*args) end
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 @failed_examples = [] # only needed for rspec 2 end
def lock_output
def lock_output if File === @output begin @output.flock File::LOCK_EX yield ensure @output.flock File::LOCK_UN end else yield end end
def start_dump(*args)
def start_dump(*args) end