Commit f8621f9c authored by Terri Chu's avatar Terri Chu

Fix raise_error warning in spec

Provide specific error class to raise_error method.
parent 6d9b901d
......@@ -121,7 +121,7 @@ describe ElasticIndexerWorker, :elastic do
expect do
subject.perform("index", 'Project', object.id, object.es_id)
end.to raise_error
end.to raise_error(Elastic::IndexRecordService::ImportError)
end
it 'ignores Elasticsearch::Transport::Transport::Errors::NotFound error' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment