diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-24 16:30:08 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-27 11:56:15 +0100 |
commit | 07c7ba1bf4a1d0092d07a23e23caf698512d46e0 (patch) | |
tree | 4a51290ef6fea14299a1a20ae396b59bbf8fb4c5 /spec/workers | |
parent | d58bab4aa535a6a82416b9bf664e99468ad18e4b (diff) | |
download | gitlab-ce-07c7ba1bf4a1d0092d07a23e23caf698512d46e0.tar.gz |
Allow to drop jobs for deleted projects
Diffstat (limited to 'spec/workers')
-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 |