Module: FileHelper::TestFiles::Make
- Included in:
- FileHelper::TestFiles
- Defined in:
- lib/file_spec/file_helpers/test_files.rb
Instance Method Summary collapse
Instance Method Details
#make_file(file) ⇒ Object
33 34 35 |
# File 'lib/file_spec/file_helpers/test_files.rb', line 33 def make_file file File.open(file, 'w') {|f| f.write "hello" } end |
#make_test_file ⇒ Object
25 26 27 |
# File 'lib/file_spec/file_helpers/test_files.rb', line 25 def make_test_file make_file test_file end |
#make_test_files ⇒ Object
29 30 31 |
# File 'lib/file_spec/file_helpers/test_files.rb', line 29 def make_test_files test_files.each{|f| make_file f} end |