Commit c418d687 authored by Shinya Maeda's avatar Shinya Maeda

Remove unneccesary spec

parent c754b693
...@@ -396,20 +396,6 @@ describe Ci::Pipeline, :mailer do ...@@ -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
......
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