spec/elasticsearch/api/actions/count_spec.rb in elasticsearch-api-7.4.0 vs spec/elasticsearch/api/actions/count_spec.rb in elasticsearch-api-7.5.0.pre.pre
- old
+ new
@@ -21,14 +21,14 @@
context 'when an index and type are specified' do
let(:expected_args) do
[
- 'GET',
- 'foo,bar/t1,t2/_count',
- {},
- nil
+ 'GET',
+ 'foo,bar/t1,t2/_count',
+ {},
+ nil
]
end
it 'performs the request' do
expect(client_double.count(index: ['foo','bar'], type: ['t1','t2'])).to eq({})
@@ -37,13 +37,13 @@
context 'when there is a query provided' do
let(:expected_args) do
[
- 'GET',
- '_count',
- {},
- { match: { foo: 'bar' } }
+ 'POST',
+ '_count',
+ {},
+ { match: { foo: 'bar' } }
]
end
it 'performs the request' do
expect(client_double.count(body: { match: { foo: 'bar' } })).to eq({})