Sha256: 41a05c2c3e1d63015018d6f700e59b7999310adacbb9c6e60a1aa58ac6defa6a
Contents?: true
Size: 1012 Bytes
Versions: 4
Compression:
Stored size: 1012 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.indices#get' do let(:expected_args) do [ 'GET', url, params, nil, nil ] end let(:params) do {} end let(:url) do 'foo' end it 'performs the request' do expect(client_double.indices.get(index: 'foo')).to eq({}) end context 'when parameters are specified' do let(:params) do { ignore_unavailable: 1 } end it 'performs the request' do expect(client_double.indices.get(index: 'foo', ignore_unavailable: 1)).to eq({}) end end context 'when features are specified' do let(:url) do 'foo/_settings' end it 'includes them in the URL' do expect(client_double.indices.get(index: 'foo', feature: '_settings')).to eq({}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems