spec/elasticsearch/api/actions/delete_document_spec.rb in elasticsearch-api-8.10.0 vs spec/elasticsearch/api/actions/delete_document_spec.rb in elasticsearch-api-8.11.0
- old
+ new
@@ -23,11 +23,12 @@
[
'DELETE',
'foo/_doc/1',
params,
nil,
- {}
+ {},
+ { defined_params: { id: '1', index: 'foo' }, endpoint: 'delete' }
]
end
let(:params) do
{}
@@ -68,10 +69,11 @@
[
'DELETE',
'foo%5Ebar/_doc/1',
params,
nil,
- {}
+ {},
+ { defined_params: { id: 1, index: 'foo^bar' }, endpoint: 'delete' }
]
end
it 'escapes the url params' do
expect(client_double.delete(index: 'foo^bar', id: 1)).to be_a Elasticsearch::API::Response