index all models in the spec helper

This commit is contained in:
Brenda Wallace
2019-12-24 09:25:58 +13:00
parent 6622aaf886
commit 99a2dfd464

View File

@@ -39,6 +39,9 @@ RSpec.configure do |config|
config.before(:suite) do
# reindex models
Crop.reindex
Seed.reindex
Harvest.reindex
Planting.reindex
# and disable callbacks
Searchkick.disable_callbacks