Module: FileHelper::TestSymlinks::Files::Remove

Included in:
FileHelper::TestSymlinks::Files
Defined in:
lib/file_spec/file_helpers/test_symlinks.rb

Instance Method Summary collapse

Instance Method Details



34
35
36
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 34

def remove_symlink_file path
  File.delete path if File.symlink? path
end


38
39
40
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 38

def remove_test_symlink_file
  remove_symlink_file sym_test_file
end


42
43
44
# File 'lib/file_spec/file_helpers/test_symlinks.rb', line 42

def remove_test_symlink_files
  sym_test_files.each{|f| remove_symlink_file f} 
end