Sha256: 42323ce0f69c711f1e23bab5c4d3957640eb6002640e6ea004e7f544bbc79d31
Contents?: true
Size: 608 Bytes
Versions: 67
Compression:
Stored size: 608 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class SearchExistsTest < ::Test::Unit::TestCase context "Search exists" do subject { FakeClient.new } should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'POST', method assert_equal '_search/exists', url assert_equal 'foo', params[:q] assert_nil body true end.returns(FakeResponse.new) subject.search_exists :q => 'foo' end end end end end
Version data entries
67 entries across 67 versions & 6 rubygems