brynary/rack-test — Issue #48: calling tempfile on Rack::Test::UploadedFile fails
Author: bterkuile
Created: 2011-12-07 10:35:55+00:00
State: open

I have a monkyepatch:

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

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.