spec/spec_helper.rb
# the full path for a file to be created in the tmp output dir
# if a block is given the file will be deleted, if it exists after the block executes
the full path for a file to be created in the tmp output dir
if a block is given the file will be deleted, if it exists after the block executes
the full path for a file to be created in the tmp output dir if a block is given the file will be deleted if it exists after the block executes
def tmp_output_path(filename)
    path = File.expand_path(File.basename(filename), TMP_OUTPUT_DIR)
    if block_given?
      FileUtils.mkdir_p(TMP_OUTPUT_DIR)
      yield path
      FileUtils.rm_f(path)
    else
      path
    end
  end
def tmp_output_path ( filename ) path = File . expand_path ( File . basename ( filename ) , TMP_OUTPUT_DIR ) if block_given? FileUtils . mkdir_p ( TMP_OUTPUT_DIR ) yield path FileUtils . rm_f ( path ) else path end end
the full path for a file to be created in the tmp output dir
if a block is given the file will be deleted, if it exists after the block executes
the full path for a file to be created in the tmp output dir if a block is given the file will be deleted if it exists after the block executes
filename