summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-25 15:23:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-25 15:23:20 +0000
commit888287c60284d7c3e81a35500575bfcc66ab3657 (patch)
tree7711eb2e729a9a9cae93a770cc89e9be0cb53091
parent10a37f4b6bb10076ddfa168afe6192e9b817013c (diff)
downloadredmine-888287c60284d7c3e81a35500575bfcc66ab3657.tar.gz
redmine-888287c60284d7c3e81a35500575bfcc66ab3657.zip
Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9005 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/integration/api_test/issues_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 2d9df063d..1c6e49b17 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -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)