Commit 21c36dbfd5d0b4bca9e6ec810fb29739cc55dea8
1 parent
56f602e6
Exists in
master
and in
21 other branches
Added reverse test
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
test/searchkick_test.rb
@@ -159,6 +159,11 @@ class TestSearchkick < Minitest::Unit::TestCase | @@ -159,6 +159,11 @@ class TestSearchkick < Minitest::Unit::TestCase | ||
159 | assert_search "q tips", ["Q Tips", "Kroger Cotton Swabs"] | 159 | assert_search "q tips", ["Q Tips", "Kroger Cotton Swabs"] |
160 | end | 160 | end |
161 | 161 | ||
162 | + def test_keywords_reverse | ||
163 | + store_names ["Scallions"] | ||
164 | + assert_search "green onions", ["Scallions"] | ||
165 | + end | ||
166 | + | ||
162 | def test_keywords_exact | 167 | def test_keywords_exact |
163 | store_names ["Green Onions", "Yellow Onions"] | 168 | store_names ["Green Onions", "Yellow Onions"] |
164 | assert_search "scallion", ["Green Onions"] | 169 | assert_search "scallion", ["Green Onions"] |