diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-01 06:11:48 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-01 06:11:48 +0000 |
commit | a2ad945627c71b207d9f2c3ec9a3e7512b45b01d (patch) | |
tree | f9da1a3ff1a42bc4f9680238faf55bb3d4d077d2 | |
parent | 09ca8a6701b023f5658cb5e8c0da9ffa5792e61d (diff) | |
download | rails-a2ad945627c71b207d9f2c3ec9a3e7512b45b01d.tar.gz rails-a2ad945627c71b207d9f2c3ec9a3e7512b45b01d.tar.bz2 rails-a2ad945627c71b207d9f2c3ec9a3e7512b45b01d.zip |
style & whitespace
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/test/controller/integration_upload_test.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/actionpack/test/controller/integration_upload_test.rb b/actionpack/test/controller/integration_upload_test.rb index 0968ae6845..33df1131cb 100644 --- a/actionpack/test/controller/integration_upload_test.rb +++ b/actionpack/test/controller/integration_upload_test.rb @@ -23,11 +23,9 @@ class SessionUploadTest < ActionController::IntegrationTest 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) @@ -35,13 +33,11 @@ class SessionUploadTest < ActionController::IntegrationTest 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
\ No newline at end of file +end |