debian-mirror-gitlab/spec/support/shared_examples/models/cluster_cleanup_worker_base_shared_examples.rb
2020-03-13 15:44:24 +05:30

12 lines
355 B
Ruby

# frozen_string_literal: true
RSpec.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