Fix index_to_elasticsearch_worker_spec (#6294) [deploy]
This commit is contained in:
parent
da259107bd
commit
9889a49838
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue