]> source.dussan.org Git - redmine.git/commitdiff
Rails 3.1 compatibility.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Feb 2012 15:23:20 +0000 (15:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Feb 2012 15:23:20 +0000 (15:23 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9005 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/api_test/issues_test.rb

index 2d9df063d2ce4a77c153e404606c12f78680ccdf..1c6e49b17e0d1c7d24002fbdc2be262a3b49a44f 100644 (file)
@@ -713,7 +713,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
 
     # upload the file
     assert_difference 'Attachment.count' do
-      post '/uploads.xml', 'test_create_with_upload', {'Content-Type' => 'application/octet-stream'}.merge(credentials('jsmith'))
+      post '/uploads.xml', 'test_create_with_upload', {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials('jsmith'))
       assert_response :created
     end
     xml = Hash.from_xml(response.body)
@@ -757,7 +757,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
 
     # upload the file
     assert_difference 'Attachment.count' do
-      post '/uploads.xml', 'test_upload_with_upload', {'Content-Type' => 'application/octet-stream'}.merge(credentials('jsmith'))
+      post '/uploads.xml', 'test_upload_with_upload', {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials('jsmith'))
       assert_response :created
     end
     xml = Hash.from_xml(response.body)