Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/ci/pipelines/create_artifact_worker_spec.rb')
-rw-r--r--spec/workers/ci/pipelines/create_artifact_worker_spec.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/workers/ci/pipelines/create_artifact_worker_spec.rb b/spec/workers/ci/pipelines/create_artifact_worker_spec.rb
deleted file mode 100644
index 31d2c4e9559..00000000000
--- a/spec/workers/ci/pipelines/create_artifact_worker_spec.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe ::Ci::Pipelines::CreateArtifactWorker do
- describe '#perform' do
- subject { described_class.new.perform(pipeline_id) }
-
- context 'when pipeline exists' do
- let(:pipeline) { create(:ci_pipeline) }
- let(:pipeline_id) { pipeline.id }
-
- it 'calls pipeline report result service' do
- expect_next_instance_of(::Ci::Pipelines::CreateArtifactService) do |create_artifact_service|
- expect(create_artifact_service).to receive(:execute)
- end
-
- subject
- end
- end
-
- context 'when pipeline does not exist' do
- let(:pipeline_id) { non_existing_record_id }
-
- it 'does not call pipeline create artifact service' do
- expect(Ci::Pipelines::CreateArtifactService).not_to receive(:execute)
-
- subject
- end
- end
- end
-end