]> source.dussan.org Git - redmine.git/commitdiff
Use media_type to get the MIME type of the request (#29914).
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:06:45 +0000 (15:06 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:06:45 +0000 (15:06 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@20890 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/api_test/projects_test.rb

index 5d9602c74fd1a69d62d18c5efced836396d40aa0..59b10efc3364546676c7e24dc24f648f7f340db4 100644 (file)
@@ -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