Sha256: dc0582e21abf803baa658252347b7b8422355941ec375fb679e278bbc2b83717
Contents?: true
Size: 909 Bytes
Versions: 2
Compression:
Stored size: 909 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class IndicesGetAliasesTest < ::Test::Unit::TestCase context "Indices: Get aliases" do subject { FakeClient.new } should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'GET', method assert_equal '_aliases', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.indices.get_aliases end should "perform request against an index" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'foo/_aliases', url true end.returns(FakeResponse.new) subject.indices.get_aliases :index => '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/get_aliases_test.rb |
elasticsearch-api-0.0.2 | test/unit/indices/get_aliases_test.rb |