Permalink
Browse files

style & whitespace

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jeremy committed Apr 1, 2008
1 parent 09ca8a6 commit a2ad945627c71b207d9f2c3ec9a3e7512b45b01d
Showing with 4 additions and 8 deletions.
  1. +4 −8 actionpack/test/controller/integration_upload_test.rb
@@ -23,25 +23,21 @@ class << self
attr_accessor :last_request_type
end
-
# def setup
# @session = ActionController::Integration::Session.new
# end
- #
def test_post_with_upload
uses_mocha "test_post_with_upload" do
Dependencies.stubs(:load?).returns(false)
with_routing do |set|
set.draw do |map|
map.update 'update', :controller => "upload_test", :action => "update", :method => :post
end
- path = "/update"
- params = {:uploaded_data => fixture_file_upload(FILES_DIR + "/mona_lisa.jpg", "image/jpg")}
- headers = {:location => 'blah' }
- post(path,params,headers)
+
+ params = { :uploaded_data => fixture_file_upload(FILES_DIR + "/mona_lisa.jpg", "image/jpg") }
+ post '/update', params, :location => 'blah'
assert_equal(:multipart_form, SessionUploadTest.last_request_type)
end
end
-
end
-end
+end

0 comments on commit a2ad945

Please sign in to comment.