summaryrefslogtreecommitdiffstats
path: root/test/integration/welcome_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-27 03:54:25 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-27 03:54:25 +0000
commitf37ed7766572550bd563632f69ad940717fa9b90 (patch)
tree6ca7069360504e61396f2c95d458853ff4c8fa39 /test/integration/welcome_test.rb
parentd168df5c822f305cb510d072144c39f205b1bd3d (diff)
downloadredmine-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/welcome_test.rb')
-rw-r--r--test/integration/welcome_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb
index cd4159d9a..5b9dcfbf0 100644
--- a/test/integration/welcome_test.rb
+++ b/test/integration/welcome_test.rb
@@ -26,7 +26,7 @@ class WelcomeTest < Redmine::IntegrationTest
def test_robots
get '/robots.txt'
assert_response :success
- assert_equal 'text/plain', @response.content_type
+ assert_equal 'text/plain', @response.media_type
# Redmine::Utils.relative_url_root does not effect on Rails 5.1.4.
assert @response.body.match(%r{^Disallow: /projects/ecookbook/issues\r?$})
end