spec/elasticsearch/api/actions/cluster/health_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/cluster/health_spec.rb in elasticsearch-api-8.0.0.pre1

- old
+ new

@@ -28,11 +28,11 @@ {} ] end it 'performs the request' do - expect(client_double.cluster.health).to eq({}) + expect(client_double.cluster.health).to be_a Elasticsearch::API::Response end context 'when a level is specified' do let(:expected_args) do @@ -44,11 +44,11 @@ {} ] end it 'performs the request' do - expect(client_double.cluster.health(level: 'indices')).to eq({}) + expect(client_double.cluster.health(level: 'indices')).to be_a Elasticsearch::API::Response end end context 'when an index is specified' do @@ -61,9 +61,9 @@ {} ] end it 'performs the request' do - expect(client_double.cluster.health(index: 'foo')).to eq({}) + expect(client_double.cluster.health(index: 'foo')).to be_a Elasticsearch::API::Response end end end