diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-16 06:09:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-16 06:09:12 +0000 |
commit | 8dadd2eab8edd2354272e1d675171a789ad4233f (patch) | |
tree | fe9c325610893f9a26c23e7287a5ddc6041e1683 /spec/models/ci/pipeline_spec.rb | |
parent | cf1d4237a4f226ba2deed26240544da0675a41e5 (diff) | |
download | gitlab-ce-8dadd2eab8edd2354272e1d675171a789ad4233f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/ci/pipeline_spec.rb')
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index 86c3628216e..cf1690df9ba 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -2932,30 +2932,6 @@ describe Ci::Pipeline, :mailer do create(:ci_sources_pipeline, pipeline: pipeline, source_job: bridge) end - context 'when downstream pipeline status transitions to pending' do - it 'updates bridge status ' do - expect(pipeline).to receive(:update_bridge_status!).once - - pipeline.run! - end - end - - context 'when the status of downstream pipeline transitions to waiting_for_resource' do - it 'updates bridge status ' do - expect(pipeline).to receive(:update_bridge_status!).once - - pipeline.request_resource! - end - end - - context 'when the status of downstream pipeline transitions to failed' do - it 'does not update bridge status ' do - expect(pipeline).not_to receive(:update_bridge_status!) - - pipeline.drop! - end - end - describe '#bridge_triggered?' do it 'is a pipeline triggered by a bridge' do expect(pipeline).to be_bridge_triggered |