spec/elasticsearch/api/actions/indices/analyze_spec.rb in elasticsearch-api-7.8.1 vs spec/elasticsearch/api/actions/indices/analyze_spec.rb in elasticsearch-api-7.9.0.pre

- old
+ new

@@ -16,20 +16,20 @@ # under the License. require 'spec_helper' describe 'client.indices#analyze' do - let(:expected_args) do [ - 'GET', - url, - params, - body, - {} + method, + url, + params, + body, + {} ] end + let(:method) { 'GET' } let(:body) do nil end @@ -44,24 +44,23 @@ it 'performs the request' do expect(client_double.indices.analyze).to eq({}) end context 'when an index is specified' do - let(:url) do 'foo/_analyze' end it 'performs the request' do expect(client_double.indices.analyze(index: 'foo')).to eq({}) end end context 'when a body is specified' do - let(:body) do 'foo' end + let(:method) { 'POST' } it 'performs the request' do expect(client_double.indices.analyze(body: 'foo')).to eq({}) end end