autocomplete: remove old autocomplete endpoints.

Remove /tag/autocomplete.json and /saved_searches/labels.json.
This commit is contained in:
evazion
2020-12-20 00:39:05 -06:00
parent 9de7a07af7
commit 28926c2332
9 changed files with 2 additions and 303 deletions

View File

@@ -16,13 +16,6 @@ class SavedSearchesControllerTest < ActionDispatch::IntegrationTest
end
end
context "labels action" do
should "render" do
get_auth labels_saved_searches_path, @user, as: :json
assert_response :success
end
end
context "create action" do
should "render" do
post_auth saved_searches_path, @user, params: { saved_search: { query: "bkub", label_string: "artist" }}

View File

@@ -76,20 +76,6 @@ class TagsControllerTest < ActionDispatch::IntegrationTest
end
end
context "autocomplete action" do
should "render" do
get autocomplete_tags_path, params: { search: { name_matches: "t" }, format: :json }
assert_response :success
end
should "respect the only param" do
get autocomplete_tags_path, params: { search: { name_matches: "t", only: "name" }, format: :json }
assert_response :success
assert_equal "touhou", response.parsed_body.first["name"]
end
end
context "show action" do
should "render" do
get tag_path(@tag)