Sha256: 9e15d19d89b90d6a8a9c0dd4ddfc9d63bd7bddf60e3e838ff2c7ad02ba8dd77b
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
require 'test_helper' module Elasticsearch module Test class IndicesGetWarmerTest < ::Test::Unit::TestCase context "Indices: Get warmer" do subject { FakeClient.new } should "require the :index argument" do assert_raise ArgumentError do subject.indices.get_warmer :name => 'foo' end end should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'GET', method assert_equal '_all/_warmer', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.indices.get_warmer :index => '_all' end should "return single warmer" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'foo/_warmer/bar', url true end.returns(FakeResponse.new) subject.indices.get_warmer :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/get_warmer_test.rb |
elasticsearch-api-0.0.2 | test/unit/indices/get_warmer_test.rb |