Sha256: 886e5b244d1a2928c1ed894f7d28f8675accc72bd6bfd6b0f52c976746b905ec

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 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#render_search_template' do

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elasticsearch-api-6.8.3 spec/elasticsearch/api/actions/render_search_template_spec.rb
elasticsearch-api-6.8.2 spec/elasticsearch/api/actions/render_search_template_spec.rb
elasticsearch-api-7.4.0 spec/elasticsearch/api/actions/render_search_template_spec.rb
elasticsearch-api-7.3.0 spec/elasticsearch/api/actions/render_search_template_spec.rb