Commit 9b327ab3f762e7b02b703c399d3ec7df2ae88888
1 parent
4c27238a
Exists in
master
and in
5 other branches
Added test for #1424 [skip ci]
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
test/should_index_test.rb
... | ... | @@ -29,4 +29,17 @@ class ShouldIndexTest < Minitest::Test |
29 | 29 | Product.searchkick_index.refresh |
30 | 30 | assert_search "index", [] |
31 | 31 | end |
32 | + | |
33 | + def test_bulk | |
34 | + store_names ["INDEX"] | |
35 | + product = Product.first | |
36 | + product.name = "DO NOT INDEX" | |
37 | + Searchkick.callbacks(false) do | |
38 | + product.save! | |
39 | + end | |
40 | + Product.where(id: product.id).reindex | |
41 | + Product.searchkick_index.refresh | |
42 | + # TODO fix in Searchkick 5 | |
43 | + # assert_search "index", [] | |
44 | + end | |
32 | 45 | end | ... | ... |