# File lib/mechanize/test_case.rb, line 162 def tempfile content body_io = Tempfile.new @__name__ body_io.unlink body_io.write content body_io.flush body_io.rewind body_io end