Skip to content

Commit 3658843

Browse files
jmksbrunoocasali
authored andcommitted
Drop specs for snake case attributes
All the specs use snake case attributes now and dropping these did not affect test coverage.
1 parent b59b1dc commit 3658843

File tree

3 files changed

+0
-43
lines changed

3 files changed

+0
-43
lines changed

spec/meilisearch/client/requests_spec.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,4 @@
1616
expect(index.uid).to eq(key)
1717
expect(index.primary_key).to eq(key)
1818
end
19-
20-
it 'parses options when they are in a different shape' do
21-
client.create_index!(key, priMARy_kEy: key)
22-
23-
index = client.fetch_index(key)
24-
expect(index.uid).to eq(key)
25-
expect(index.primary_key).to eq(key)
26-
end
2719
end

spec/meilisearch/index/search/multi_params_spec.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,4 @@
7979
expect(response['facetDistribution']['genre']['adventure']).to eq(1)
8080
expect(response['facetDistribution']['genre']['fantasy']).to eq(1)
8181
end
82-
83-
context 'with snake_case options' do
84-
it 'does a custom search with attributes in a unusual formatting' do
85-
response = index.search(
86-
'prince',
87-
{
88-
aTTributes_TO_Crop: ['title'],
89-
crop_length: 2,
90-
filter: 'genre = adventure',
91-
attributes_to_highlight: ['title']
92-
}
93-
)
94-
95-
expect(response['hits'].count).to be(1)
96-
expect(response['hits'].first).to have_key('_formatted')
97-
expect(response['hits'].first['_formatted']['title']).to eq('…Petit <em>Prince</em>')
98-
end
99-
end
10082
end

spec/meilisearch/index/settings_spec.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,6 @@
9797
expect(settings['stopWords']).to be_empty
9898
expect(settings['synonyms']).to be_empty
9999
end
100-
101-
context 'with snake_case options' do
102-
it 'does the request with camelCase attributes' do
103-
task = index.update_settings(
104-
ranking_rules: ['typo'],
105-
distinct_ATTribute: 'title',
106-
stopWords: ['a']
107-
)
108-
109-
client.wait_for_task(task['taskUid'])
110-
settings = index.settings
111-
112-
expect(settings['rankingRules']).to eq(['typo'])
113-
expect(settings['distinctAttribute']).to eq('title')
114-
expect(settings['stopWords']).to eq(['a'])
115-
end
116-
end
117100
end
118101

119102
context 'On ranking-rules sub-routes' do

0 commit comments

Comments
 (0)