diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-08-13 12:33:58 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-08-13 12:33:58 +0300 |
commit | 266211b9c4edc308d7c99ed6b80b3a1bd01ff1f3 (patch) | |
tree | bc1c8a15a48a5d8e481f3ec4cc021b6f3bad90f6 /spec | |
parent | 3770f3fb300ee01fca9735fdf1e5cd940ace4452 (diff) | |
parent | 1438119df4a8407ce0a62ae65a34ee51c3b710ca (diff) |
Merge branch 'remove-build-process-worker' into 'master'
Remove unused `BuildProcessWorker`
Closes #65539
See merge request gitlab-org/gitlab-ce!31756
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 |