spec/elasticsearch/api/actions/indices/get_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/indices/get_spec.rb in elasticsearch-api-8.0.0.pre1
- old
+ new
@@ -36,19 +36,19 @@
let(:url) do
'foo'
end
it 'performs the request' do
- expect(client_double.indices.get(index: 'foo')).to eq({})
+ expect(client_double.indices.get(index: 'foo')).to be_a Elasticsearch::API::Response
end
context 'when parameters are specified' do
let(:params) do
{ ignore_unavailable: 1 }
end
it 'performs the request' do
- expect(client_double.indices.get(index: 'foo', ignore_unavailable: 1)).to eq({})
+ expect(client_double.indices.get(index: 'foo', ignore_unavailable: 1)).to be_a Elasticsearch::API::Response
end
end
end