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:
authorKamil Trzciński <ayufan@ayufan.eu>2019-08-13 11:22:13 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2019-08-13 11:22:13 +0300
commit1438119df4a8407ce0a62ae65a34ee51c3b710ca (patch)
tree43647dc7699496310b585c8a0ea98163ad2ac736 /spec/workers
parent8ae75677a38eafe5dda2ffe716df26a72093c5a8 (diff)
Remove unused `BuildProcessWorker`
We migrated all logic to `PipelineProcessWorker` and this worker become redundant.
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/build_process_worker_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/workers/build_process_worker_spec.rb b/spec/workers/build_process_worker_spec.rb
deleted file mode 100644
index d9a02ece142..00000000000
--- a/spec/workers/build_process_worker_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-describe BuildProcessWorker do
- describe '#perform' do
- context 'when build exists' do
- let(:pipeline) { create(:ci_pipeline) }
- let(:build) { create(:ci_build, pipeline: pipeline) }
-
- it 'processes build' do
- expect_any_instance_of(Ci::Pipeline).to receive(:process!)
- .with([build.id])
-
- described_class.new.perform(build.id)
- end
- end
-
- context 'when build does not exist' do
- it 'does not raise exception' do
- expect { described_class.new.perform(123) }
- .not_to raise_error
- end
- end
- end
-end