Sha256: c9fc215c76a04f0f78754fa10a4de86a2f0458de4213328f7f4cc08317c64b4b

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

describe Esearch::Command::Document::Index::Update, '.run' do
  subject { object.run(context, document, options) }

  let(:object)   { described_class    }
  let(:document) { double('Document') }
  let(:options)  { { :foo => :bar }   }

  let(:expected_request) do
    Esearch::Request.new(:post, '/foo', document, { :foo => :bar, :op_type => :index })
  end

  expect_presenter(Esearch::Presenter::Document::Operation::Index)
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
esearch-0.2.1 spec/unit/esearch/command/document/index/run_update_spec.rb
esearch-0.2.1 spec/unit/esearch/command/document/index/update/run_spec.rb