search for: multipart_post

Displaying 2 results from an estimated 2 matches for "multipart_post".

2007 Apr 24
1
Testing for multipart form uploads
...olution 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=>session, :project_id=>project_id, :support_file=>{''uploaded_data''=>fdata}, :format=>''xml'' BTW: On the other side, I''...
2007 Dec 11
14
Attachment-fu + Story Runner
Hi all, I''m trying to run a Story Runner integration test that uploads a file through Attachment-fu. I''ve tried various ways of specifying the file data, from custom mocks: class MockFile < Struct.new (:original_filename, :read, :content_type); end fdata = MockFile.new "test_upload.txt", "Test Upload", "text/plain" to