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

Don't paramify ActionDispatch::Http::UploadedFile in tests #6805

Merged
merged 1 commit into from Jun 23, 2012
Merged

Don't paramify ActionDispatch::Http::UploadedFile in tests #6805

merged 1 commit into from Jun 23, 2012

Conversation

tim-vandecasteele
Copy link

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)

@carlosantoniodasilva
Copy link
Member

Can we have a test for that, to ensure it won't break in future changes? Thanks.

@drogus
Copy link
Member

drogus commented Jun 21, 2012

Could you squash the commits and add a description to commit message? Basically something similar to what you wrote in issue description (here is a few more words about that: http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#commit-your-changes)

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)
carlosantoniodasilva added a commit that referenced this pull request Jun 23, 2012
Don't paramify ActionDispatch::Http::UploadedFile in tests
@carlosantoniodasilva carlosantoniodasilva merged commit ebe8a45 into rails:master Jun 23, 2012
@carlosantoniodasilva
Copy link
Member

@tim-vandecasteele thanks!

@tim-vandecasteele
Copy link
Author

My pleasure, thanks for the great guidance towards my first commit.

@carlosantoniodasilva
Copy link
Member

You're welcome :)

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.

None yet

3 participants