Module: FileHelper::TestFiles::Remove
- Included in:
- FileHelper::TestFiles
- Defined in:
- lib/file_spec/file_helpers/test_files.rb
Instance Method Summary collapse
Instance Method Details
#remove_file(file) ⇒ Object
39 40 41 |
# File 'lib/file_spec/file_helpers/test_files.rb', line 39 def remove_file file File.delete file if File.exist? file end |
#remove_test_file ⇒ Object
43 44 45 |
# File 'lib/file_spec/file_helpers/test_files.rb', line 43 def remove_test_file remove_file test_file end |
#remove_test_files ⇒ Object
47 48 49 |
# File 'lib/file_spec/file_helpers/test_files.rb', line 47 def remove_test_files test_files.each{|f| remove_file f} end |