Use #media_type instead of #content_type to test the MIME type of a response (#32886).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19467 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-01-27 03:54:25 +00:00
parent d168df5c82
commit f37ed77665
44 changed files with 223 additions and 223 deletions

View File

@@ -25,7 +25,7 @@ class Redmine::ApiTest::CustomFieldsTest < Redmine::ApiTest::Base
test "GET /custom_fields.xml should return custom fields" do
get '/custom_fields.xml', :headers => credentials('admin')
assert_response :success
assert_equal 'application/xml', response.content_type
assert_equal 'application/xml', response.media_type
assert_select 'custom_fields' do
assert_select 'custom_field' do