From 888287c60284d7c3e81a35500575bfcc66ab3657 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 25 Feb 2012 15:23:20 +0000 Subject: [PATCH] Rails 3.1 compatibility. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9005 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/issues_test.rb | 4 ++-- 1 file 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) -- 2.39.5