File upload in an integration test

What is the best way to test a file upload as part of an integration
test?

Thanks,
Justin

You can test it the same way as you would in a functional test.

This website gives notes:

http://turnipspatch.com/testing-file-uploads-in-ruby-on-rails/

This method was submitted as a patch to Rails and included in version
1.1:

http://dev.rubyonrails.org/ticket/4105

.aaaron

Justin wrote:

What is the best way to test a file upload as part of an integration
test?

Thanks,
Justin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs