Displaying 5 results from an estimated 5 matches for "test_upload".
Did you mean:
test_upload_0
2007 Dec 11
14
Attachment-fu + Story Runner
...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 ''proper'' railsy stubs like:
fdata = ActionController::TestUploadedFile.new("../spec/fixtures/
test_upload.txt", "text/plain")
The actual params are specified as:
{ :uploaded_data => fdata,...
2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
....rb"; require "test/test_select_none.rb"; require
"test/test_select_noopts.rb"; require "test/test_set_fields.rb"; require
"test/test_ssl_server.rb"; require "test/test_subclass.rb"; require
"test/test_textarea.rb"; require "test/test_upload.rb"; require
"test/test_util.rb"; require "test/test_verbs.rb"'' --
Loaded suite -e
Started
...............................................................E.................................................................................................................
2009 Jul 01
0
unicorn 0.9.0 (experimental release)
...constant
Optimize body-less GET/HEAD requests (again)
tee_input: Don''t expose the @rd object as a return value
exec_cgi: small cleanups
README: another note about older Sinatra
tee_input: avoid defining a @rd.size method
Make TeeInput easier to use
test_upload: add tests for chunked encoding
GNUmakefile: more stringent error checking in tests
test_upload: fix ECONNRESET with 1.9
GNUmakefile: allow TRACER= to be specified for tests
test_rails: workaround long-standing 1.9 bug
tee_input: avoid rereading fresh data
"...
2009 Jul 01
0
unicorn 0.9.0 (experimental release)
...constant
Optimize body-less GET/HEAD requests (again)
tee_input: Don''t expose the @rd object as a return value
exec_cgi: small cleanups
README: another note about older Sinatra
tee_input: avoid defining a @rd.size method
Make TeeInput easier to use
test_upload: add tests for chunked encoding
GNUmakefile: more stringent error checking in tests
test_upload: fix ECONNRESET with 1.9
GNUmakefile: allow TRACER= to be specified for tests
test_rails: workaround long-standing 1.9 bug
tee_input: avoid rereading fresh data
"...
2007 Jan 23
4
Want feedback on Mongrel patch for handling partial PUT requests
By default, Mongrel will delete the HTTP request body and short
circuit calling any handlers if a request is interrupted or
incomplete. Unfortunately, this breaks any attempt to correctly
handle a partial PUT. (BTW, PUT is *way* more efficient for uploads
compared to POST which requires a MIME parsing step.) So, about a
month ago I wrote up some patches to Mongrel 0.3.18 that allowed