summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-01 15:06:45 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-01 15:06:45 +0000
commit9e27972181aad1a1d40b000e46292e5143ed7b54 (patch)
tree7711a827a07a29efb9c0bb3b3390142acabd3c18
parent474c1d4e35247d8cc726c854beb4d61ae4f84ec7 (diff)
downloadredmine-9e27972181aad1a1d40b000e46292e5143ed7b54.tar.gz
redmine-9e27972181aad1a1d40b000e46292e5143ed7b54.zip
Use media_type to get the MIME type of the request (#29914).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20890 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/integration/api_test/projects_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index 5d9602c74..59b10efc3 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -172,7 +172,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
get '/projects/1.xml?include=trackers', :headers => credentials(user.login)
assert_response :success
- assert_equal 'application/xml', @response.content_type
+ assert_equal 'application/xml', @response.media_type
assert_select 'trackers[type=array]' do
assert_select 'tracker[id="1"]', :count => 1