diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-06-01 15:41:33 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-06-01 15:41:33 +0900 |
commit | c418d68765eb09c468419ec8f438100cda64a0d4 (patch) | |
tree | 46245cfbbf7476b1d8366d360078a5bfd0f38605 /spec/models/ci | |
parent | c754b6937c8077304386b3a6b37233e52eacdb3e (diff) | |
download | gitlab-ce-c418d68765eb09c468419ec8f438100cda64a0d4.tar.gz |
Remove unneccesary spec
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index e03c068b88e..2b9c232743d 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -396,20 +396,6 @@ describe Ci::Pipeline, :mailer do expect(seeds.size).to eq 1 expect(seeds.dig(0, 0, :name)).to eq 'unit' 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 |