test/boost_test.rb in searchkick-2.5.0 vs test/boost_test.rb in searchkick-3.0.0

- old
+ new

@@ -38,13 +38,13 @@ assert_order "speaker", ["Speaker A", "Speaker B", "Speaker C", "Speaker D"], {conversions: "conversions_a"}, Speaker assert_order "speaker", ["Speaker D", "Speaker C", "Speaker B", "Speaker A"], {conversions: "conversions_a", conversions_term: "speaker_1"}, Speaker end - def test_conversions_stemmed + def test_conversions_case store [ - {name: "Tomato A", conversions: {"tomato" => 1, "tomatos" => 1, "Tomatoes" => 1}}, + {name: "Tomato A", conversions: {"tomato" => 1, "TOMATO" => 1, "tOmAtO" => 1}}, {name: "Tomato B", conversions: {"tomato" => 2}} ] assert_order "tomato", ["Tomato A", "Tomato B"] end @@ -120,16 +120,10 @@ store [ {name: "Tomato A"}, {name: "Tomato B", orders_count: 10}, ] - if elasticsearch_below50? - assert_raises(ArgumentError) do - assert_order "tomato", ["Tomato A", "Tomato B"], boost_by: {orders_count: {missing: 100}} - end - else - assert_order "tomato", ["Tomato A", "Tomato B"], boost_by: {orders_count: {missing: 100}} - end + assert_order "tomato", ["Tomato A", "Tomato B"], boost_by: {orders_count: {missing: 100}} end def test_boost_by_boost_mode_multiply store [ {name: "Tomato A", found_rate: 0.9},