diff options
author | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
commit | 6438df3a1e0fb944485cebf07976160184697d72 (patch) | |
tree | 00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /spec/workers/expire_build_artifacts_worker_spec.rb | |
parent | 42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff) | |
download | gitlab-ce-6438df3a1e0fb944485cebf07976160184697d72.tar.gz |
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'spec/workers/expire_build_artifacts_worker_spec.rb')
-rw-r--r-- | spec/workers/expire_build_artifacts_worker_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/workers/expire_build_artifacts_worker_spec.rb b/spec/workers/expire_build_artifacts_worker_spec.rb index 995f37daf17..6d73d715d21 100644 --- a/spec/workers/expire_build_artifacts_worker_spec.rb +++ b/spec/workers/expire_build_artifacts_worker_spec.rb @@ -8,9 +8,11 @@ RSpec.describe ExpireBuildArtifactsWorker do describe '#perform' do it 'executes a service' do expect_next_instance_of(Ci::DestroyExpiredJobArtifactsService) do |instance| - expect(instance).to receive(:execute) + expect(instance).to receive(:execute).and_call_original end + expect(worker).to receive(:log_extra_metadata_on_done).with(:destroyed_job_artifacts_count, 0) + worker.perform end end |