Sha256: c90edb855b424e6d0a571a1a2fc5416e597f995aff7d1bfdadcf8f0eced34875
Contents?: true
Size: 992 Bytes
Versions: 2
Compression:
Stored size: 992 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class IndicesDeleteAliasTest < ::Test::Unit::TestCase context "Indices: Delete alias" do subject { FakeClient.new } should "require the :index argument" do assert_raise ArgumentError do subject.indices.delete_alias :name => 'bar' end end should "require the :name argument" do assert_raise ArgumentError do subject.indices.delete_alias :index => 'foo' end end should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'DELETE', method assert_equal 'foo/_alias/bar', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.indices.delete_alias :index => 'foo', :name => 'bar' 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_alias_test.rb |
elasticsearch-api-0.0.2 | test/unit/indices/delete_alias_test.rb |