diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/shared_examples/ci/deployable_shared_examples.rb | 22 | ||||
-rw-r--r-- | spec/workers/environments/auto_stop_cron_worker_spec.rb | 8 |
2 files changed, 0 insertions, 30 deletions
diff --git a/spec/support/shared_examples/ci/deployable_shared_examples.rb b/spec/support/shared_examples/ci/deployable_shared_examples.rb index 0781eec1b4b..4f43d38e604 100644 --- a/spec/support/shared_examples/ci/deployable_shared_examples.rb +++ b/spec/support/shared_examples/ci/deployable_shared_examples.rb @@ -166,28 +166,6 @@ RSpec.shared_examples 'a deployable job' do expect(deployment).to be_failed end - - context 'when the job is a stop job' do - before do - job.update!(environment: 'review', options: { environment: { action: 'stop' } }) - end - - it 'enqueues Environments::StopJobFailedWorker' do - expect(Environments::StopJobFailedWorker) - .to receive(:perform_async) - - subject - end - end - - context 'when the job is not a stop job' do - it 'does not enqueue Environments::StopJobFailedWorker' do - expect(Environments::StopJobFailedWorker) - .not_to receive(:perform_async) - - subject - end - end end context 'when transits to skipped' do diff --git a/spec/workers/environments/auto_stop_cron_worker_spec.rb b/spec/workers/environments/auto_stop_cron_worker_spec.rb index 14a74022a1f..ad44cf97e07 100644 --- a/spec/workers/environments/auto_stop_cron_worker_spec.rb +++ b/spec/workers/environments/auto_stop_cron_worker_spec.rb @@ -14,12 +14,4 @@ RSpec.describe Environments::AutoStopCronWorker, feature_category: :continuous_d subject end - - it 'executes Environments::AutoRecoverService' do - expect_next_instance_of(Environments::AutoRecoverService) do |service| - expect(service).to receive(:execute) - end - - subject - end end |