spec/elasticsearch/api/actions/indices/disk_usage_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/indices/disk_usage_spec.rb in elasticsearch-api-8.0.0.pre1
- old
+ new
@@ -29,10 +29,10 @@
end
let(:index) { 'foo' }
it 'performs the request' do
- expect(client_double.indices.disk_usage(index: index)).to eq({})
+ expect(client_double.indices.disk_usage(index: index)).to be_a Elasticsearch::API::Response
end
context 'when there is no index specified' do
let(:client) do
Class.new { include Elasticsearch::API }.new