]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/traces_controller_test.rb
Fix some deprecation warnings
[rails.git] / test / controllers / api / traces_controller_test.rb
index cc191c08359a3e7a1b32e2684898714f2f54989e..80b9d1a8458a445e2719c2059a8c2eefe72d49d9 100644 (file)
@@ -336,7 +336,7 @@ module Api
     def check_trace_data(trace, digest, content_type = "application/gpx+xml", extension = "gpx")
       assert_response :success
       assert_equal digest, Digest::MD5.hexdigest(response.body)
-      assert_equal content_type, response.content_type
+      assert_equal content_type, response.media_type
       assert_equal "attachment; filename=\"#{trace.id}.#{extension}\"; filename*=UTF-8''#{trace.id}.#{extension}", @response.header["Content-Disposition"]
     end