spec/elasticsearch/api/actions/clear_scroll_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/clear_scroll_spec.rb in elasticsearch-api-8.0.0.pre1
- old
+ new
@@ -28,11 +28,11 @@
{}
]
end
it 'performs the request' do
- expect(client_double.clear_scroll(scroll_id: 'abc123')).to eq({})
+ expect(client_double.clear_scroll(scroll_id: 'abc123')).to be_a Elasticsearch::API::Response
end
context 'when a list of scroll ids is provided' do
let(:expected_args) do
@@ -44,9 +44,9 @@
{}
]
end
it 'performs the request' do
- expect(client_double.clear_scroll(scroll_id: ['abc123', 'def456'])).to eq({})
+ expect(client_double.clear_scroll(scroll_id: ['abc123', 'def456'])).to be_a Elasticsearch::API::Response
end
end
end