diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 09:11:17 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 09:11:17 +0000 |
commit | 67cdffe4deb5c887c17115d4f974c0e8a267ffd2 (patch) | |
tree | 05023f6d748b4ca308eb9d61d28696726cad85f3 /spec/workers | |
parent | 93c27b216aa57d57ebd8f5f2581e45dc300324b8 (diff) | |
download | gitlab-ce-67cdffe4deb5c887c17115d4f974c0e8a267ffd2.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/ci/pipeline_artifacts/expire_artifacts_worker_spec.rb | 2 | ||||
-rw-r--r-- | spec/workers/expire_build_artifacts_worker_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/ci/pipeline_artifacts/expire_artifacts_worker_spec.rb b/spec/workers/ci/pipeline_artifacts/expire_artifacts_worker_spec.rb index 2bdd8345374..ad9c08d02cb 100644 --- a/spec/workers/ci/pipeline_artifacts/expire_artifacts_worker_spec.rb +++ b/spec/workers/ci/pipeline_artifacts/expire_artifacts_worker_spec.rb @@ -11,7 +11,7 @@ RSpec.describe Ci::PipelineArtifacts::ExpireArtifactsWorker do end it 'executes a service' do - expect_next_instance_of(::Ci::PipelineArtifacts::DestroyExpiredArtifactsService) do |instance| + expect_next_instance_of(::Ci::PipelineArtifacts::DestroyAllExpiredService) do |instance| expect(instance).to receive(:execute) end diff --git a/spec/workers/expire_build_artifacts_worker_spec.rb b/spec/workers/expire_build_artifacts_worker_spec.rb index 6d73d715d21..3f8da3fb71c 100644 --- a/spec/workers/expire_build_artifacts_worker_spec.rb +++ b/spec/workers/expire_build_artifacts_worker_spec.rb @@ -7,7 +7,7 @@ RSpec.describe ExpireBuildArtifactsWorker do describe '#perform' do it 'executes a service' do - expect_next_instance_of(Ci::DestroyExpiredJobArtifactsService) do |instance| + expect_next_instance_of(Ci::JobArtifacts::DestroyAllExpiredService) do |instance| expect(instance).to receive(:execute).and_call_original end |