From acb629baf4fcea68e76875605b831976b602d9aa Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Tue, 30 Mar 2021 09:57:08 +0300 Subject: [PATCH 11/19] Use media_type to get the MIME type of the request (#29914). --- test/integration/api_test/projects_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.22.0