spec/elasticsearch/api/actions/indices/get_settings_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/indices/get_settings_spec.rb in elasticsearch-api-8.0.0.pre1

- old
+ new

@@ -32,41 +32,41 @@ let(:url) do '_settings' end it 'performs the request' do - expect(client_double.indices.get_settings).to eq({}) + expect(client_double.indices.get_settings).to be_a Elasticsearch::API::Response end context 'when an index is specified' do let(:url) do 'foo/_settings' end it 'performs the request' do - expect(client_double.indices.get_settings(index: 'foo')).to eq({}) + expect(client_double.indices.get_settings(index: 'foo')).to be_a Elasticsearch::API::Response end end context 'when a name is specified' do let(:url) do 'foo/_settings/foo.bar' end it 'performs the request' do - expect(client_double.indices.get_settings(index: 'foo', name: 'foo.bar')).to eq({}) + expect(client_double.indices.get_settings(index: 'foo', name: 'foo.bar')).to be_a Elasticsearch::API::Response end end context 'when the path must be URL-escaped' do let(:url) do 'foo%5Ebar/_settings' end it 'performs the request' do - expect(client_double.indices.get_settings(index: 'foo^bar')).to eq({}) + expect(client_double.indices.get_settings(index: 'foo^bar')).to be_a Elasticsearch::API::Response end end end