mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
Use media_type to get the MIME type of the request (#29914).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20890 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -172,7 +172,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
|
||||
|
||||
get '/projects/1.xml?include=trackers', :headers => credentials(user.login)
|
||||
assert_response :success
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
assert_equal 'application/xml', @response.media_type
|
||||
|
||||
assert_select 'trackers[type=array]' do
|
||||
assert_select 'tracker[id="1"]', :count => 1
|
||||
|
||||
Reference in New Issue
Block a user