diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-24 18:30:08 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-27 13:56:15 +0300 |
commit | 07c7ba1bf4a1d0092d07a23e23caf698512d46e0 (patch) | |
tree | 4a51290ef6fea14299a1a20ae396b59bbf8fb4c5 /spec/workers/stuck_ci_jobs_worker_spec.rb | |
parent | d58bab4aa535a6a82416b9bf664e99468ad18e4b (diff) |
Allow to drop jobs for deleted projects
Diffstat (limited to 'spec/workers/stuck_ci_jobs_worker_spec.rb')
-rw-r--r-- | spec/workers/stuck_ci_jobs_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/stuck_ci_jobs_worker_spec.rb b/spec/workers/stuck_ci_jobs_worker_spec.rb index ac6f4fefb4e..7f9545177bc 100644 --- a/spec/workers/stuck_ci_jobs_worker_spec.rb +++ b/spec/workers/stuck_ci_jobs_worker_spec.rb @@ -105,8 +105,8 @@ describe StuckCiJobsWorker do job.project.update(pending_delete: true) end - it 'does not drop job' do - expect_any_instance_of(Ci::Build).not_to receive(:drop) + it 'does drop job' do + expect_any_instance_of(Ci::Build).to receive(:drop) worker.perform end end |