Move query notes by user value to mixin

This commit is contained in:
Anton Khorev 2023-11-21 13:08:50 +03:00
parent 500c1bddf2
commit bd278a07fe
3 changed files with 37 additions and 13 deletions

View file

@ -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