spec/elasticsearch/api/actions/indices/analyze_spec.rb in elasticsearch-api-8.10.0 vs spec/elasticsearch/api/actions/indices/analyze_spec.rb in elasticsearch-api-8.11.0
- old
+ new
@@ -22,11 +22,12 @@
[
method,
url,
params,
body,
- {}
+ {},
+ { endpoint: 'indices.analyze' }
]
end
let(:method) { 'GET' }
let(:body) do
@@ -46,9 +47,20 @@
end
context 'when an index is specified' do
let(:url) do
'foo/_analyze'
+ end
+
+ let(:expected_args) do
+ [
+ method,
+ url,
+ params,
+ body,
+ {},
+ { defined_params: { index: 'foo' }, endpoint: 'indices.analyze' }
+ ]
end
it 'performs the request' do
expect(client_double.indices.analyze(index: 'foo')).to be_a Elasticsearch::API::Response
end