Commit c2e4363d6a3b41cd38a9e0d7acd50e6feb8485f8

Authored by Andrew Kane
1 parent d0084301

Fixed test

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
test/partial_reindex_test.rb
... ... @@ -9,8 +9,12 @@ class PartialReindexTest < Minitest::Test
9 9 assert_search "blue", ["Hi"], fields: [:color], load: false
10 10  
11 11 # update
12   - Product.first.update_column :name, "Bye"
13   - Product.first.update_column :color, "Red"
  12 + product = Product.first
  13 + product.name = "Bye"
  14 + product.color = "Red"
  15 + Searchkick.callbacks(false) do
  16 + product.save!
  17 + end
14 18 Product.searchkick_index.refresh
15 19  
16 20 # index not updated
... ...