Commit c1a39f2c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Check if source bridge job relation returns bridge job

parent 12bdf876
......@@ -55,6 +55,7 @@ describe Ci::CreateCrossProjectPipelineService, '#execute' do
expect(bridge.sourced_pipelines.first.pipeline).to eq pipeline
expect(pipeline.source_pipeline.source_pipeline).to eq upstream_pipeline
expect(pipeline.source_pipeline.source_job).to eq bridge
expect(pipeline.source_pipeline.source_job).to be_a ::Ci::Bridge
end
it 'delegates permissions to newly created pipelines' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment