Sha256: 5e071daa238cf07a0fafd0f3039140a8338544c86dc61aa6a48750d2f0ab0a9f
Contents?: true
Size: 625 Bytes
Versions: 42
Compression:
Stored size: 625 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class FieldCapsTest < ::Test::Unit::TestCase context "Field caps" 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 'foo/_field_caps', url assert_equal 'bar', params[:fields] assert_equal nil, body true end.returns(FakeResponse.new) subject.field_caps index: 'foo', fields: 'bar' end end end end end
Version data entries
42 entries across 42 versions & 6 rubygems