From 2207b1bfacef9d5fb415ae25d3b10871bca45400 Mon Sep 17 00:00:00 2001 From: Dalton Date: Mon, 8 Feb 2021 15:10:04 +0100 Subject: [PATCH] Fix spec in order to work with Ruby 3.0 --- spec/chewy/multi_search_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/chewy/multi_search_spec.rb b/spec/chewy/multi_search_spec.rb index aa6178418..d6f847a3d 100644 --- a/spec/chewy/multi_search_spec.rb +++ b/spec/chewy/multi_search_spec.rb @@ -10,8 +10,8 @@ stub_index(:places) do define_type City do - field :name, KEYWORD_FIELD - field :country_id, KEYWORD_FIELD + field :name, type: 'keyword' + field :country_id, type: 'keyword' def self.aggregate_by_country aggs(country: {terms: {field: :country_id}})