Fix index_to_elasticsearch_worker_spec (#6294) [deploy]

This commit is contained in:
Alex 2020-02-25 11:57:38 -08:00 committed by GitHub
parent da259107bd
commit 9889a49838
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ RSpec.describe Search::IndexToElasticsearchWorker, type: :worker, elasticsearch:
it "indexes document" do
tag = FactoryBot.create(:tag)
expect { tag.elasticsearch_doc }.to raise_error(Elasticsearch::Transport::Transport::Errors::NotFound)
expect { tag.elasticsearch_doc }.to raise_error(Search::Errors::Transport::NotFound)
worker.perform(tag.class.name, tag.id)
expect(tag.elasticsearch_doc.dig("_source", "id")).to eql(tag.id)