diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-08-13 11:22:13 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-08-13 11:22:13 +0300 |
commit | 1438119df4a8407ce0a62ae65a34ee51c3b710ca (patch) | |
tree | 43647dc7699496310b585c8a0ea98163ad2ac736 /spec | |
parent | 8ae75677a38eafe5dda2ffe716df26a72093c5a8 (diff) |
Remove unused `BuildProcessWorker`
We migrated all logic to `PipelineProcessWorker`
and this worker become redundant.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/workers/build_process_worker_spec.rb | 26 |
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 |