switch fuzzy autocomplete to spellcorrect intent

This commit is contained in:
Albert Yi
2018-09-05 09:41:25 -07:00
parent 314341773c
commit 3025db66d7
2 changed files with 5 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ class TagAutocompleteTest < ActiveSupport::TestCase
end
end
context "#search_fuzzy" do
context "#search_correct" do
setup do
CurrentUser.stubs(:id).returns(1)
@@ -60,7 +60,7 @@ class TagAutocompleteTest < ActiveSupport::TestCase
@tags[1],
@tags[2]
].map(&:name)
assert_equal(expected, subject.search_fuzzy("abcd", 3).map(&:name))
assert_equal(expected, subject.search_correct("abcd", 3).map(&:name))
end
end