Sha256: abfb32fbed0689d337f0c02b96079bcdb8712956c8b7bd5972782af724e052c5
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class IndicesDeleteTemplateTest < ::Test::Unit::TestCase context "Indices: Delete template" do subject { FakeClient.new } should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'DELETE', method assert_equal '_template/foo', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.indices.delete_template :name => 'foo' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticsearch-api-0.4.0 | test/unit/indices/delete_template_test.rb |
elasticsearch-api-0.0.2 | test/unit/indices/delete_template_test.rb |