Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9189

Show
Ignore:
Timestamp:
04/01/08 06:11:48 (3 months ago)
Author:
bitsweat
Message:

style & whitespace

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/controller/integration_upload_test.rb

    r8978 r9189  
    2424  end 
    2525 
    26  
    2726  # def setup 
    2827  #   @session = ActionController::Integration::Session.new 
    2928  # end 
    30   # 
    3129  def test_post_with_upload 
    3230    uses_mocha "test_post_with_upload" do 
     
    3634          map.update 'update', :controller => "upload_test", :action => "update", :method => :post 
    3735        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' 
    4239        assert_equal(:multipart_form, SessionUploadTest.last_request_type) 
    4340      end 
    4441    end 
    45  
    4642   end 
    4743end