search for: integration_test_file_upload

Displaying 1 result from an estimated 1 matches for "integration_test_file_upload".

2007 Apr 24
1
Testing for multipart form uploads
...ubyonrails-talk/browse_thread/thread/fdfd2c040a2425f4 >From what I understand, fixture_file_upload''s output is translated a String. There''s a ticket discussing this here: http://dev.rubyonrails.org/ticket/4635 The solution there is to use code that does the multipart encoding: integration_test_file_upload.rb Again, it doesn''t work. The file I''m getting is a truncated version of the original. This is my code: fdata = fixture_file_upload(fname,''application/octet-stream'') multipart_post url_for(:controller=>:support_files, :action=>:create), :session=&gt...