module Filewatcher::SpecHelper::WatchRun::ClassMethods

Class methods for this and inherited modules

Public Instance Methods

transform_spec_files(file) click to toggle source
# File lib/filewatcher/spec_helper/watch_run.rb, line 21
def transform_spec_files(file)
  tmp_files_dir = File.join(Dir.getwd, TMP_FILES_DIR)

  return tmp_files_dir if file.to_s.empty?

  return file if file.match?(%r{^(/|~|[A-Z]:)})

  File.join(tmp_files_dir, file)
end