tags: fix typo in order_similarity (fixup 8de692580).

This commit is contained in:
evazion
2019-09-26 21:54:22 -05:00
parent 97e0c16af6
commit 6f0b58ad49
2 changed files with 8 additions and 1 deletions

View File

@@ -27,6 +27,13 @@ class TagsControllerTest < ActionDispatch::IntegrationTest
get tags_path, params: {:search => {:name_matches => "touhou"}}
assert_response :success
end
should "work for search[fuzzy_name_matches]" do
get tags_path, as: :json, params: { search: { fuzzy_name_matches: "touhuo", order: "similarity" }}
assert_response :success
assert_equal "touhou", response.parsed_body.first["name"]
end
end
context "with blank search parameters" do