From 3da51c49c0f5cc512d4cdd4503f21e4d6c16299b Mon Sep 17 00:00:00 2001 From: Alexander Sviridov Date: Mon, 19 Aug 2024 13:39:04 +0300 Subject: [PATCH] update Chewy.massacre call --- lib/chewy/minitest/helpers.rb | 2 +- spec/chewy/elastic_client_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chewy/minitest/helpers.rb b/lib/chewy/minitest/helpers.rb index e9fbd1362..0254c8f97 100644 --- a/lib/chewy/minitest/helpers.rb +++ b/lib/chewy/minitest/helpers.rb @@ -142,7 +142,7 @@ def index_everything! teardown do # always destroy indexes between tests # Prevent croll pollution of test cases due to indexing - Chewy.massacre + drop_indices end end end diff --git a/spec/chewy/elastic_client_spec.rb b/spec/chewy/elastic_client_spec.rb index 79d3946ba..58cdc0cc7 100644 --- a/spec/chewy/elastic_client_spec.rb +++ b/spec/chewy/elastic_client_spec.rb @@ -6,7 +6,7 @@ let!(:filter_previous_value) { Chewy.before_es_request_filter } before do - Chewy.massacre + drop_indices stub_index(:products) do field :id, type: :integer end