module RspecSupportMethods::TemporaryFile
Helper method for temporary file
Public Instance Methods
temp_file(text)
click to toggle source
# File lib/rspec_support_methods/temporary_file.rb, line 4 def temp_file(text) file = Tempfile.new('tmp') file.write(text) file.close file end