Skip to content

Commit 2dc9b88

Browse files
authored
Merge pull request #495 from ellnix/fix-matching-strategy-spec
Fix matching_strategy_spec
2 parents 1532c27 + 0b52793 commit 2dc9b88

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

spec/meilisearch/index/search/matching_strategy_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
include_context 'search books with nested fields'
55

66
it 'does a custom search with a matching strategy ALL' do
7-
response = index.search('another french book', matching_strategy: 'all')
7+
response = index.search('best book again', matching_strategy: 'all')
88

99
expect(response['hits'].count).to eq(1)
1010
end
1111

1212
it 'does a custom search with a matching strategy LAST' do
13-
response = index.search('french book', matching_strategy: 'last')
13+
response = index.search('best book again', matching_strategy: 'last')
1414

1515
expect(response['hits'].count).to eq(2)
1616
end

spec/support/books_contexts.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@
150150
{
151151
id: 7,
152152
title: 'The Hitchhiker\'s Guide to the Galaxy'
153+
},
154+
{
155+
id: 8,
156+
title: 'Harry Potter and the Deathly Hallows',
157+
info: {
158+
comment: 'The best book again',
159+
reviewNb: 1000
160+
}
153161
}
154162
]
155163
end

0 commit comments

Comments
 (0)