mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-12 12:42:08 -04:00
refresh in dex at start of spec run
This commit is contained in:
1 parent
c708d4d22b
commit
ee4aa4dec3
1 file changed
+4
-4
+4
-4
@@ -38,10 +38,10 @@ RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
# reindex models
|
||||
Crop.reindex
|
||||
Seed.reindex
|
||||
Harvest.reindex
|
||||
Planting.reindex
|
||||
Crop.searchkick_index.refresh
|
||||
Seed.searchkick_index.refresh
|
||||
Harvest.searchkick_index.refresh
|
||||
Planting.searchkick_index.refresh
|
||||
|
||||
# and disable callbacks
|
||||
Searchkick.disable_callbacks
|
||||
|
||||
Reference in new issue
Block a user