debian-mirror-gitlab/spec/support/shared_examples/models/cluster_cleanup_worker_base_shared_examples.rb
2020-01-01 13:55:28 +05:30

12 lines
349 B
Ruby

# frozen_string_literal: true
shared_examples 'cluster cleanup worker base specs' do
it 'transitions to errored if sidekiq retries exhausted' do
job = { 'args' => [cluster.id, 0], 'jid' => '123' }
described_class.sidekiq_retries_exhausted_block.call(job)
expect(cluster.reload.cleanup_status_name).to eq(:cleanup_errored)
end
end