Commit 608be0c387e1d74c07d28c90a938688441b92819
1 parent
479ac9ab
Exists in
conversions_period
Test behavior of converions period [skip ci]
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
test/boost_test.rb
@@ -48,6 +48,17 @@ class BoostTest < Minitest::Test | @@ -48,6 +48,17 @@ class BoostTest < Minitest::Test | ||
48 | assert_order "tomato", ["Tomato A", "Tomato B"] | 48 | assert_order "tomato", ["Tomato A", "Tomato B"] |
49 | end | 49 | end |
50 | 50 | ||
51 | + def test_conversions_period | ||
52 | + store [ | ||
53 | + {name: "Tomato Soup A", conversions: {"tomato.soup" => 1}}, | ||
54 | + {name: "Tomato Soup B", conversions: {"tomato.soup" => 2}}, | ||
55 | + {name: "Tomato Soup C", conversions: {"tomato.soup" => 3}} | ||
56 | + ] | ||
57 | + assert_order "tomato.soup", ["Tomato Soup C", "Tomato Soup B", "Tomato Soup A"] | ||
58 | + assert_equal_scores "tomato" | ||
59 | + assert_equal_scores "tomato soup" | ||
60 | + end | ||
61 | + | ||
51 | # global boost | 62 | # global boost |
52 | 63 | ||
53 | def test_boost | 64 | def test_boost |