Sha256: 7a799dff74d4b906c9933bb1c1bac666d792300c39e2344a3ef33dc19876a7a5

Contents?: true

Size: 599 Bytes

Versions: 77

Compression:

Stored size: 599 Bytes

Contents

require 'test_helper'

module Elasticsearch
  module Test
    class CatAllocationTest < ::Test::Unit::TestCase

      context "Cat: Allocation" 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 '_cat/allocation', url
            assert_equal Hash.new, params
            assert_nil   body
            true
          end.returns(FakeResponse.new)

          subject.cat.allocation
        end

      end

    end
  end
end

Version data entries

77 entries across 77 versions & 6 rubygems

Version Path
elasticsearch-api-1.0.16.pre test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.15 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.14 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.13 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.12 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.11 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.10 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.9 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.7 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.6 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.5 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.4 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.2 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.1 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.0 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.0.rc2 test/unit/cat/allocation_test.rb
elasticsearch-api-1.0.0.rc1 test/unit/cat/allocation_test.rb