Module: Filewatcher::SpecHelper::WatchRun::ClassMethods

Defined in:
lib/filewatcher/spec_helper/watch_run.rb

Overview

Class methods for this and inherited modules

Instance Method Summary collapse

Instance Method Details

#transform_spec_files(file) ⇒ Object



40
41
42
43
44
45
46
47
48
# File 'lib/filewatcher/spec_helper/watch_run.rb', line 40

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