Commit 44b62b70974d372c7302def8092536bdadfdc912
1 parent
8fa05f64
Exists in
master
and in
19 other branches
Added test for phrase order - #269
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
test/match_test.rb
... | ... | @@ -203,6 +203,11 @@ class MatchTest < Minitest::Test |
203 | 203 | assert_search "fresh honey", ["Fresh Honey"], match: :phrase |
204 | 204 | end |
205 | 205 | |
206 | + def test_phrase_order | |
207 | + store_names ["Wheat Bread", "Whole Wheat Bread"] | |
208 | + assert_order "wheat bread", ["Wheat Bread", "Whole Wheat Bread"], match: :phrase | |
209 | + end | |
210 | + | |
206 | 211 | def test_unsearchable |
207 | 212 | store [ |
208 | 213 | {name: "Unsearchable", description: "Almond"} | ... | ... |