Sha256: 6d8370bf0b0e9501a0b8575a18c6abb691970bed6c669b402cb8c58848a40483
Contents?: true
Size: 972 Bytes
Versions: 57
Compression:
Stored size: 972 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class IngestSimulateTest < ::Test::Unit::TestCase context "Ingest: Simulate" 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 '_ingest/pipeline/_simulate', url assert_equal Hash.new, params assert_equal Hash.new, body true end.returns(FakeResponse.new) subject.ingest.simulate :body => {} end should "perform correct request with a pipeline ID" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal '_ingest/pipeline/foo/_simulate', url true end.returns(FakeResponse.new) subject.ingest.simulate :id => 'foo', :body => {} end end end end end
Version data entries
57 entries across 57 versions & 6 rubygems