Feature #29914 » 0011-Use-media_type-to-get-the-MIME-type-of-the-request-2.patch
| test/integration/api_test/projects_test.rb | ||
|---|---|---|
|
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
|
||