Sha256: 6e48d75a374b747caf49b280b168c25df0e9f53acd4c0de50d02e1f539a74436
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
# # encoding: UTF-8 # encoding: UTF-8 require 'spec_helper' describe Esearch::Command::Document::Index::Create, '.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: :create) end expect_presenter(Esearch::Presenter::Document::Operation::Index) do let(:status) { 201 } end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
esearch-0.2.2 | spec/unit/esearch/command/document/index/create/run_spec.rb |
esearch-0.2.2 | spec/unit/esearch/command/document/index/run_create_spec.rb |