diff options
Diffstat (limited to 'spec/workers/ci/create_cross_project_pipeline_worker_spec.rb')
-rw-r--r-- | spec/workers/ci/create_cross_project_pipeline_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/ci/create_cross_project_pipeline_worker_spec.rb b/spec/workers/ci/create_cross_project_pipeline_worker_spec.rb index 95dcf5624cc..116e6878281 100644 --- a/spec/workers/ci/create_cross_project_pipeline_worker_spec.rb +++ b/spec/workers/ci/create_cross_project_pipeline_worker_spec.rb @@ -13,7 +13,7 @@ RSpec.describe Ci::CreateCrossProjectPipelineWorker do describe '#perform' do context 'when bridge exists' do it 'calls cross project pipeline creation service' do - expect(Ci::CreateCrossProjectPipelineService) + expect(Ci::CreateDownstreamPipelineService) .to receive(:new) .with(project, user) .and_return(service) @@ -26,7 +26,7 @@ RSpec.describe Ci::CreateCrossProjectPipelineWorker do context 'when bridge does not exist' do it 'does nothing' do - expect(Ci::CreateCrossProjectPipelineService) + expect(Ci::CreateDownstreamPipelineService) .not_to receive(:new) described_class.new.perform(non_existing_record_id) |