autocomplete: remove old autocomplete endpoints.
Remove /tag/autocomplete.json and /saved_searches/labels.json.
This commit is contained in:
@@ -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" }}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user