test/boost_test.rb in searchkick-0.1.3 vs test/boost_test.rb in searchkick-0.1.4
- old
+ new
@@ -36,6 +36,14 @@
{name: "Zero Boost", orders_count: 0}
]
assert_order "zero", ["Zero Boost"], boost: "orders_count"
end
+ def test_conversions_weight
+ store [
+ {name: "Product Boost", orders_count: 20},
+ {name: "Product Conversions", conversions: {"product" => 10}}
+ ]
+ assert_order "product", ["Product Conversions", "Product Boost"], boost: "orders_count"
+ end
+
end