Changeset 9189
- Timestamp:
- 04/01/08 06:11:48 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/test/controller/integration_upload_test.rb
r8978 r9189 24 24 end 25 25 26 27 26 # def setup 28 27 # @session = ActionController::Integration::Session.new 29 28 # end 30 #31 29 def test_post_with_upload 32 30 uses_mocha "test_post_with_upload" do … … 36 34 map.update 'update', :controller => "upload_test", :action => "update", :method => :post 37 35 end 38 path = "/update" 39 params = {:uploaded_data => fixture_file_upload(FILES_DIR + "/mona_lisa.jpg", "image/jpg")} 40 headers = {:location => 'blah' } 41 post(path,params,headers) 36 37 params = { :uploaded_data => fixture_file_upload(FILES_DIR + "/mona_lisa.jpg", "image/jpg") } 38 post '/update', params, :location => 'blah' 42 39 assert_equal(:multipart_form, SessionUploadTest.last_request_type) 43 40 end 44 41 end 45 46 42 end 47 43 end