Commit c6a9a6831d71f2981f42203658babb9388497842
1 parent
87b0a6bc
Exists in
search_as_you_type
Test shingles
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
test/search_as_you_type_test.rb
... | ... | @@ -25,6 +25,12 @@ class SearchAsYouTypeTest < Minitest::Test |
25 | 25 | assert_search "da", ["Dark Grey"], exclude: "blue" |
26 | 26 | end |
27 | 27 | |
28 | + def test_shingles | |
29 | + expected = ["one two three", "one two other three", "one other two other three"] | |
30 | + store_names expected | |
31 | + assert_order "one two three", expected | |
32 | + end | |
33 | + | |
28 | 34 | def default_model |
29 | 35 | Item |
30 | 36 | end | ... | ... |