diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-14 18:10:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-14 18:10:46 +0300 |
commit | 8106ac487c3b52471e2ca894c65c13162c2fb1a8 (patch) | |
tree | 12a07c7dd794babe870477f3cd42f15392a82355 /spec/workers/expire_build_artifacts_worker_spec.rb | |
parent | 18873553de98259d0558157f78198b38ddd02b31 (diff) |
Add latest changes from gitlab-org/gitlab@master
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 |