Sha256: 213e0af11a6c328ef41c3a2a932a2cf31decbd1961d9c588e61391bb71ebf2d2
Contents?: true
Size: 977 Bytes
Versions: 4
Compression:
Stored size: 977 Bytes
Contents
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information require 'spec_helper' describe 'client.nodes#hot_threads' do let(:expected_args) do [ 'GET', url, {}, nil, nil ] end let(:url) do '_nodes/hot_threads' end it 'performs the request' do expect(client_double.nodes.hot_threads).to eq({}) end context 'when the node id is specified' do let(:url) do '_nodes/foo/hot_threads' end it 'performs the request' do expect(client_double.nodes.hot_threads(node_id: 'foo')).to eq({}) end end context 'when the path must be URL-escaped' do let(:url) do '_nodes/foo%5Ebar/hot_threads' end it 'performs the request' do expect(client_double.nodes.hot_threads(node_id: 'foo^bar')).to eq({}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems