diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 15:06:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 15:06:00 +0300 |
commit | b570d73ecd31e2ca9cf8c2f1adb056edf2869477 (patch) | |
tree | 0b8aa67eab6da552d8499f1fdcf9a7495dcf1379 /spec/workers | |
parent | 34b3567c97ecc0f317adae04e10e4d7d8c8830db (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/pipeline_process_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/pipeline_process_worker_spec.rb b/spec/workers/pipeline_process_worker_spec.rb index ac677e3b555..8260d7ac320 100644 --- a/spec/workers/pipeline_process_worker_spec.rb +++ b/spec/workers/pipeline_process_worker_spec.rb @@ -8,7 +8,7 @@ describe PipelineProcessWorker do let(:pipeline) { create(:ci_pipeline) } it 'processes pipeline' do - expect_any_instance_of(Ci::Pipeline).to receive(:process!) + expect_any_instance_of(Ci::ProcessPipelineService).to receive(:execute) described_class.new.perform(pipeline.id) end @@ -17,7 +17,7 @@ describe PipelineProcessWorker do let(:build) { create(:ci_build, pipeline: pipeline, name: 'my-build') } it 'processes pipeline with a list of builds' do - expect_any_instance_of(Ci::Pipeline).to receive(:process!) + expect_any_instance_of(Ci::ProcessPipelineService).to receive(:execute) .with([build.id]) described_class.new.perform(pipeline.id, [build.id]) |