Sha256: 4658dea72530e2b6e64abf92463a36f717213f69a3ecd6a78f5bfb4da66d8ba8

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 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#search_template' do

  let(:expected_args) do
    [
        'GET',
        'foo/_search/template',
        { },
        { foo: 'bar' }
    ]
  end

  it 'performs the request' do
    expect(client_double.search_template(index: 'foo', body: { foo: 'bar' })).to eq({})
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
elasticsearch-api-6.8.3 spec/elasticsearch/api/actions/search_template_spec.rb
elasticsearch-api-6.8.2 spec/elasticsearch/api/actions/search_template_spec.rb
elasticsearch-api-7.6.0 spec/elasticsearch/api/actions/search_template_spec.rb
elasticsearch-api-7.6.0.pre spec/elasticsearch/api/actions/search_template_spec.rb
elasticsearch-api-7.5.0 spec/elasticsearch/api/actions/search_template_spec.rb
elasticsearch-api-7.5.0.pre.pre spec/elasticsearch/api/actions/search_template_spec.rb
elasticsearch-api-7.4.0 spec/elasticsearch/api/actions/search_template_spec.rb
elasticsearch-api-7.3.0 spec/elasticsearch/api/actions/search_template_spec.rb