Remove unneccesary spec
This commit is contained in:
parent
c754b6937c
commit
c418d68765
|
@ -188,7 +188,7 @@ describe Gitlab::Ci::Pipeline::Chain::Populate do
|
||||||
expect(pipeline.stages.size).to eq 1
|
expect(pipeline.stages.size).to eq 1
|
||||||
expect(pipeline.stages.first.builds.size).to eq 1
|
expect(pipeline.stages.first.builds.size).to eq 1
|
||||||
expect(pipeline.stages.first.builds.first.name).to eq 'rspec'
|
expect(pipeline.stages.first.builds.first.name).to eq 'rspec'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -396,20 +396,6 @@ describe Ci::Pipeline, :mailer do
|
||||||
expect(seeds.size).to eq 1
|
expect(seeds.size).to eq 1
|
||||||
expect(seeds.dig(0, 0, :name)).to eq 'unit'
|
expect(seeds.dig(0, 0, :name)).to eq 'unit'
|
||||||
end
|
end
|
||||||
|
|
||||||
context "when pipeline iid is used for 'only' keyword" do
|
|
||||||
let(:config) do
|
|
||||||
{ rspec: { script: 'rspec', only: { variables: ['$CI_PIPELINE_IID == 2'] } },
|
|
||||||
prod: { script: 'cap prod', only: { variables: ['$CI_PIPELINE_IID == 1'] } } }
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'returns stage seeds only when variables expression is truthy' do
|
|
||||||
seeds = pipeline.stage_seeds
|
|
||||||
|
|
||||||
expect(seeds.size).to eq 1
|
|
||||||
expect(seeds.dig(0, 0, :name)).to eq 'prod'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue