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

- old
+ new

@@ -28,34 +28,34 @@ {} ] end let(:url) do - '_cluster/nodes/hot_threads' + '_nodes/hot_threads' end it 'performs the request' do - expect(client_double.nodes.hot_threads).to eq({}) + expect(client_double.nodes.hot_threads).to be_a Elasticsearch::API::Response end context 'when the node id is specified' do let(:url) do - '_cluster/nodes/foo/hot_threads' + '_nodes/foo/hot_threads' end it 'performs the request' do - expect(client_double.nodes.hot_threads(node_id: 'foo')).to eq({}) + expect(client_double.nodes.hot_threads(node_id: 'foo')).to be_a Elasticsearch::API::Response end end context 'when the path must be URL-escaped' do let(:url) do - '_cluster/nodes/foo%5Ebar/hot_threads' + '_nodes/foo%5Ebar/hot_threads' end it 'performs the request' do - expect(client_double.nodes.hot_threads(node_id: 'foo^bar')).to eq({}) + expect(client_double.nodes.hot_threads(node_id: 'foo^bar')).to be_a Elasticsearch::API::Response end end end