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/functional/issue_relations_controller_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/functional/issue_relations_controller_test.rb')
-rw-r--r-- | test/functional/issue_relations_controller_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb index 45e87cbc1..f0395c9b8 100644 --- a/test/functional/issue_relations_controller_test.rb +++ b/test/functional/issue_relations_controller_test.rb @@ -81,7 +81,7 @@ class IssueRelationsControllerTest < Redmine::ControllerTest }, :xhr => true assert_response :success - assert_equal 'text/javascript', response.content_type + assert_equal 'text/javascript', response.media_type end relation = IssueRelation.order('id DESC').first assert_equal 1, relation.issue_from_id @@ -182,7 +182,7 @@ class IssueRelationsControllerTest < Redmine::ControllerTest :xhr => true assert_response :success - assert_equal 'text/javascript', response.content_type + assert_equal 'text/javascript', response.media_type end assert_include 'Related issue cannot be blank', response.body end @@ -217,7 +217,7 @@ class IssueRelationsControllerTest < Redmine::ControllerTest :xhr => true assert_response :success - assert_equal 'text/javascript', response.content_type + assert_equal 'text/javascript', response.media_type assert_include 'relation-2', response.body end end |