Skip to content

Commit

Permalink
Fix spec in order to work with Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalton authored and Ivan Rabotyaga committed Feb 11, 2021
1 parent 07221aa commit 2207b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/chewy/multi_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down

0 comments on commit 2207b1b

Please sign in to comment.