class Rack::Test::UploadedFile

def path

The path to the tempfile. Will not work if the receiver's content is from a StringIO.
def path
  tempfile.path
end