Sha256: e40ac8ee337867ac3441cdec27ff274b2be243956aafbf2aa4ae9a729fdedc35

Contents?: true

Size: 630 Bytes

Versions: 2

Compression:

Stored size: 630 Bytes

Contents

require 'test_helper'

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

      context "Indices: Split" do
        subject { FakeClient.new }

        should "perform correct request" do
          subject.expects(:perform_request).with do |method, url, params, body|
            assert_equal 'FAKE', method
            assert_equal 'test', url
            assert_equal Hash.new, params
            assert_equal Hash.new, body
            true
          end.returns(FakeResponse.new)

          subject.indices.split :index => 'foo', :target => 'foo'
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
elasticsearch-api-6.1.0 test/unit/indices/split_test.rb
elasticsearch-api-6.0.3 test/unit/indices/split_test.rb