0011-Use-media_type-to-get-the-MIME-type-of-the-request-2.patch

Marius BALTEANU, 2021-03-30 18:42

Download (1005 Bytes)

View differences:

test/integration/api_test/projects_test.rb
172 172

  
173 173
    get '/projects/1.xml?include=trackers', :headers => credentials(user.login)
174 174
    assert_response :success
175
    assert_equal 'application/xml', @response.content_type
175
    assert_equal 'application/xml', @response.media_type
176 176

  
177 177
    assert_select 'trackers[type=array]' do
178 178
      assert_select 'tracker[id="1"]', :count => 1
179
-