spec/lib/crawler/output_sink/elasticsearch_spec.rb [395:407]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          _reduce_whitespace: true,
          _run_ml_inference: true,
          _extract_binary_content: true
        }
      end

      it 'does not immediately send the document into elasticsearch' do
        expect(es_client).to_not receive(:bulk)

        subject.write(crawl_result)
        expect(bulk_queue).to have_received(:add).with(index_op, hash_including(expected_doc))
      end
    end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/lib/crawler/output_sink/elasticsearch_spec.rb [494:507]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          _reduce_whitespace: true,
          _run_ml_inference: true,
          _extract_binary_content: true
        }
      end

      it 'does not immediately send the document into elasticsearch' do
        # using an empty queue for this test, so bulk should never be called
        expect(es_client).to_not receive(:bulk)

        subject.write(crawl_result)
        expect(bulk_queue).to have_received(:add).with(index_op, hash_including(expected_doc))
      end
    end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



