mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
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:
@@ -33,7 +33,7 @@ class Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base
|
||||
get '/queries.xml'
|
||||
|
||||
assert_response :success
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
assert_equal 'application/xml', @response.media_type
|
||||
assert_select 'queries[type=array] query id', :text => '4' do
|
||||
assert_select '~ name', :text => 'Public query for all projects'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user