spec/elasticsearch/api/actions/nodes/stats_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/nodes/stats_spec.rb in elasticsearch-api-8.0.0.pre1

- old
+ new

@@ -32,11 +32,11 @@ let(:url) do '_nodes/stats' end it 'performs the request' do - expect(client_double.nodes.stats).to eq({}) + expect(client_double.nodes.stats).to be_a Elasticsearch::API::Response end let(:params) do {} end @@ -46,31 +46,31 @@ let(:url) do '_nodes/foo/stats' end it 'performs the request' do - expect(client_double.nodes.stats(node_id: 'foo')).to eq({}) + expect(client_double.nodes.stats(node_id: 'foo')).to be_a Elasticsearch::API::Response end end context 'when metrics are specified' do let(:url) do '_nodes/stats/http,fs' end it 'performs the request' do - expect(client_double.nodes.stats(metric: [:http, :fs])).to eq({}) + expect(client_double.nodes.stats(metric: [:http, :fs])).to be_a Elasticsearch::API::Response end end context 'when index metric is specified' do let(:url) do '_nodes/stats/indices/filter_cache' end it 'performs the request' do - expect(client_double.nodes.stats(metric: :indices, index_metric: :filter_cache)).to eq({}) + expect(client_double.nodes.stats(metric: :indices, index_metric: :filter_cache)).to be_a Elasticsearch::API::Response end end end