spec/elasticsearch/api/actions/count_spec.rb in elasticsearch-api-7.6.0 vs spec/elasticsearch/api/actions/count_spec.rb in elasticsearch-api-7.7.0.pre

- old
+ new

@@ -9,11 +9,12 @@ let(:expected_args) do [ 'GET', '_count', {}, - nil + nil, + {} ] end it 'performs the request' do expect(client_double.count).to eq({}) @@ -24,11 +25,12 @@ let(:expected_args) do [ 'GET', 'foo,bar/t1,t2/_count', {}, - nil + nil, + {} ] end it 'performs the request' do expect(client_double.count(index: ['foo','bar'], type: ['t1','t2'])).to eq({}) @@ -40,10 +42,11 @@ let(:expected_args) do [ 'POST', '_count', {}, - { match: { foo: 'bar' } } + { match: { foo: 'bar' } }, + {} ] end it 'performs the request' do expect(client_double.count(body: { match: { foo: 'bar' } })).to eq({})