spec/elasticsearch/api/actions/indices/delete_template_spec.rb in elasticsearch-api-8.10.0 vs spec/elasticsearch/api/actions/indices/delete_template_spec.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -23,11 +23,12 @@ [ 'DELETE', url, params, nil, - {} + {}, + { defined_params: { name: 'foo' }, endpoint: 'indices.delete_template' } ] end let(:params) do {} @@ -43,9 +44,20 @@ context 'when the path needs to be URL-escaped' do let(:url) do '_template/foo%5Ebar' + end + + let(:expected_args) do + [ + 'DELETE', + url, + params, + nil, + {}, + { defined_params: { name: 'foo^bar' }, endpoint: 'indices.delete_template' } + ] end it 'performs the request' do expect(client_double.indices.delete_template(name: 'foo^bar')).to be_a Elasticsearch::API::Response end