chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module CsvTestHelper
|
||||
def with_temp_csv_file(content, file_name = "test_import")
|
||||
file = Tempfile.new([file_name, ".csv"])
|
||||
file.write(content)
|
||||
file.rewind
|
||||
yield file
|
||||
ensure
|
||||
file&.unlink
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user