test/boost_test.rb in searchkick-0.1.4 vs test/boost_test.rb in searchkick-0.2.0
- old
+ new
@@ -44,6 +44,16 @@
{name: "Product Conversions", conversions: {"product" => 10}}
]
assert_order "product", ["Product Conversions", "Product Boost"], boost: "orders_count"
end
+ def test_user_id
+ store [
+ {name: "Tomato A"},
+ {name: "Tomato B", user_ids: [1, 2, 3]},
+ {name: "Tomato C"},
+ {name: "Tomato D"}
+ ]
+ assert_first "tomato", "Tomato B", user_id: 2
+ end
+
end