spec/elasticsearch/api/actions/count_spec.rb in elasticsearch-api-7.15.0 vs spec/elasticsearch/api/actions/count_spec.rb in elasticsearch-api-7.16.0

- old
+ new

@@ -16,14 +16,13 @@ # under the License. require 'spec_helper' describe 'client#count' do - let(:expected_args) do [ - 'POST', + 'GET', '_count', {}, nil, {} ] @@ -32,14 +31,13 @@ it 'performs the request' do expect(client_double.count).to eq({}) end context 'when an index and type are specified' do - let(:expected_args) do [ - 'POST', + 'GET', 'foo,bar/t1,t2/_count', {}, nil, {} ] @@ -49,10 +47,9 @@ expect(client_double.count(index: ['foo','bar'], type: ['t1','t2'])).to eq({}) end end context 'when there is a query provided' do - let(:expected_args) do [ 'POST', '_count', {},