calling tempfile on Rack::Test::UploadedFile fails #48

bterkuile opened this Issue Dec 7, 2011 · 1 comment


None yet

2 participants


I have a monkyepatch:

# Monkeypatch fixing missing tempfile handler in rack-test
class Rack::Test::UploadedFile
  def tempfile

Because I call tempfile on an uploaded file in an application.

This also mignt indicate that there is a problem with the real uploaded file in Rails 3.1.1, since it does not accept a call to closed? and tempfile does.

brynary commented Jan 24, 2012

Hi Benjamin,

This looks like a dupe of #30, which I just closed. However, if you're able to provide more info on #30 (see the questions/instructions I included in my last comment), then perhaps we can move forward with something.


@brynary brynary closed this Jan 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment