X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/500c1bddf2640c0b59e8d761534f4bb99a83fbec..4485cae913bbb7c138aa435bf0ecfd8d8f6f5095:/test/controllers/api/notes_controller_test.rb diff --git a/test/controllers/api/notes_controller_test.rb b/test/controllers/api/notes_controller_test.rb index a2c9dc8a4..f1a0f766c 100644 --- a/test/controllers/api/notes_controller_test.rb +++ b/test/controllers/api/notes_controller_test.rb @@ -1066,6 +1066,14 @@ module Api assert_select "gpx", :count => 1 do assert_select "wpt", :count => 1 end + + user2 = create(:user) + get search_api_notes_path(:user => user2.id, :format => "xml") + assert_response :success + assert_equal "application/xml", @response.media_type + assert_select "osm", :count => 1 do + assert_select "note", :count => 0 + end end def test_search_by_time_success