| ... | @@ -50,5 +50,14 @@ describe Gitlab::DataBuilder::Pipeline do |
... | @@ -50,5 +50,14 @@ describe Gitlab::DataBuilder::Pipeline do |
|
|
it { expect(attributes[:variables]).to be_a(Array) }
|
|
it { expect(attributes[:variables]).to be_a(Array) }
|
|
|
it { expect(attributes[:variables]).to contain_exactly({ key: 'TRIGGER_KEY_1', value: 'TRIGGER_VALUE_1' }) }
|
|
it { expect(attributes[:variables]).to contain_exactly({ key: 'TRIGGER_KEY_1', value: 'TRIGGER_VALUE_1' }) }
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
context 'when pipeline is a detached merge request pipeline' do
|
|
|
|
let(:merge_request) { create(:merge_request, :with_detached_merge_request_pipeline) }
|
|
|
|
let(:pipeline) { merge_request.all_pipelines.first }
|
|
|
|
|
|
|
|
it 'returns a source ref' do
|
|
|
|
expect(attributes[:ref]).to eq(merge_request.source_branch)
|
|
|
|
end
|
|
|
|
end
|
|
|
end
|
|
end
|
|
|
end |
|
end |