diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index 2d9df06..1c6e49b 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)