Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport "Don't paramify ActionDispatch::Http::UploadedFile in tests" #7786

Merged
merged 1 commit into from
Sep 29, 2012
Merged

Backport "Don't paramify ActionDispatch::Http::UploadedFile in tests" #7786

merged 1 commit into from
Sep 29, 2012

Conversation

mjonuschat
Copy link

This is a backport of commit 8471edc (see pull request #6805) to 3.2-stable to allow testing with ActionDispatch::Http::UploadedFile since Rack::Test::UploadedFile and ActionDispatch::Http::UploadedFile don't
share the same API. For further details see mentioned pull request

@rafaelfranca
Copy link
Member

Could you add a CHANGELOG entry?

To test uploading a file without using fixture_file_upload, a posted
ActionDispatch::Http::UploadedFile should not be paramified (just like
Rack::Test::UploadedFile).
(Rack::Test::UploadedFile and ActionDispatch::Http::UploadedFile don't
share the same API, tempfile is not accessible on
Rack::Test::UploadedFile as discussed in
rack/rack-test#30)
@mjonuschat
Copy link
Author

Added changelog entry and squashed commits.

rafaelfranca added a commit that referenced this pull request Sep 29, 2012
Backport "Don't paramify ActionDispatch::Http::UploadedFile in tests"
@rafaelfranca rafaelfranca merged commit c2a7084 into rails:3-2-stable Sep 29, 2012
@rafaelfranca
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants