diff options
author | Go MAEDA <maeda@farend.jp> | 2020-01-27 03:54:25 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-01-27 03:54:25 +0000 |
commit | f37ed7766572550bd563632f69ad940717fa9b90 (patch) | |
tree | 6ca7069360504e61396f2c95d458853ff4c8fa39 /test/integration/api_test/issue_relations_test.rb | |
parent | d168df5c822f305cb510d072144c39f205b1bd3d (diff) | |
download | redmine-f37ed7766572550bd563632f69ad940717fa9b90.tar.gz redmine-f37ed7766572550bd563632f69ad940717fa9b90.zip |
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
Diffstat (limited to 'test/integration/api_test/issue_relations_test.rb')
-rw-r--r-- | test/integration/api_test/issue_relations_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb index fa6c5a546..842f785e2 100644 --- a/test/integration/api_test/issue_relations_test.rb +++ b/test/integration/api_test/issue_relations_test.rb @@ -33,7 +33,7 @@ class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base get '/issues/9/relations.xml', :headers => credentials('jsmith') assert_response :success - assert_equal 'application/xml', @response.content_type + assert_equal 'application/xml', @response.media_type assert_select 'relations[type=array] relation id', :text => '1' end @@ -51,7 +51,7 @@ class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base assert_equal 'relates', relation.relation_type assert_response :created - assert_equal 'application/xml', @response.content_type + assert_equal 'application/xml', @response.media_type assert_select 'relation id', :text => relation.id.to_s end @@ -70,7 +70,7 @@ class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base get '/relations/2.xml', :headers => credentials('jsmith') assert_response :success - assert_equal 'application/xml', @response.content_type + assert_equal 'application/xml', @response.media_type assert_select 'relation id', :text => '2' end |