Skip to content

Commit

Permalink
Fix broken tests after v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali committed Sep 5, 2023
1 parent 2350792 commit 95087a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- bundle:/vendor/bundle

meilisearch:
image: getmeili/meilisearch:latest
image: getmeili/meilisearch:v1.4.0-rc.0
ports:
- "7700"
environment:
Expand Down
9 changes: 6 additions & 3 deletions spec/meilisearch/index/settings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
'sortableAttributes',
'typoTolerance',
'faceting',
'pagination'
'pagination',
'dictionary',
'nonSeparatorTokens',
'separatorTokens'
]
end
let(:uid) { random_uid }
Expand All @@ -39,7 +42,7 @@
it 'gets default values of settings' do
settings = index.settings
expect(settings).to be_a(Hash)
expect(settings.keys).to contain_exactly(*settings_keys)
expect(settings.keys).to include(*settings_keys)
expect(settings['rankingRules']).to eq(default_ranking_rules)
expect(settings['distinctAttribute']).to be_nil
expect(settings['searchableAttributes']).to eq(default_searchable_attributes)
Expand Down Expand Up @@ -540,7 +543,7 @@
it 'gets the default values of settings' do
settings = index.settings
expect(settings).to be_a(Hash)
expect(settings.keys).to contain_exactly(*settings_keys)
expect(settings.keys).to include(*settings_keys)
expect(settings['rankingRules']).to eq(default_ranking_rules)
expect(settings['distinctAttribute']).to be_nil
expect(settings['searchableAttributes']).to eq(default_searchable_attributes)
Expand Down

0 comments on commit 95087a5

Please sign in to comment.