In Rails, `ActionDispatch::Http::UploadedFile` has an accessor to access a `Tempfile` object. However, `Rack::Test::UploadedFile` does not provide that, but provinding the `#path` method instead. To be able to support both, we have to check for existance for `#tempfile` method, then fallback to `#path` method. Fixes #807
Name |
Last commit
|
Last Update |
---|---|---|
cucumber | Loading commit data... | |
features | Loading commit data... | |
gemfiles | Loading commit data... | |
generators/paperclip | Loading commit data... | |
lib | Loading commit data... | |
rails | Loading commit data... | |
shoulda_macros | Loading commit data... | |
test | Loading commit data... | |
.gitignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
Appraisals | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
Gemfile | Loading commit data... | |
Gemfile.lock | Loading commit data... | |
LICENSE | Loading commit data... | |
NEWS | Loading commit data... | |
README.md | Loading commit data... | |
Rakefile | Loading commit data... | |
UPGRADING | Loading commit data... | |
images.rake | Loading commit data... | |
paperclip.gemspec | Loading commit data... |