]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/traces_controller_test.rb
Add user id to api trace output
[rails.git] / test / controllers / api / traces_controller_test.rb
index d85e5e1a4e484c0379f0f48dfa32d4e5b7095dcc..468af852b7c2e37b89d802f024b55c8066f39daa 100644 (file)
@@ -52,6 +52,7 @@ module Api
       auth_header = basic_authorization_header public_trace_file.user.display_name, "test"
       get api_trace_path(public_trace_file), :headers => auth_header
       assert_response :success
+      assert_select "gpx_file[id='#{public_trace_file.id}'][uid='#{public_trace_file.user.id}']", 1
     end
 
     # Check an anonymous trace can't be specifically fetched by another user