diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-23 13:56:16 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-23 13:56:16 +0100 |
commit | b6e4e449fbd2f844736e9121067c3cfea2cb2933 (patch) | |
tree | d86a28273a5ad8c5ad66335109997b823203a72e /spec/lib/gitlab/ci/yaml_processor_spec.rb | |
parent | 8a2bc9b4457903dfdb0efc88c5ba816f4ba3141e (diff) | |
download | gitlab-ce-b6e4e449fbd2f844736e9121067c3cfea2cb2933.tar.gz |
Integrate build seeds with variables expressions policy
Diffstat (limited to 'spec/lib/gitlab/ci/yaml_processor_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/yaml_processor_spec.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/lib/gitlab/ci/yaml_processor_spec.rb b/spec/lib/gitlab/ci/yaml_processor_spec.rb index e1cc826e0d9..88d8fe2c661 100644 --- a/spec/lib/gitlab/ci/yaml_processor_spec.rb +++ b/spec/lib/gitlab/ci/yaml_processor_spec.rb @@ -182,22 +182,6 @@ module Gitlab it 'returns stages seed attributes' do expect(subject.stages_attributes).to eq attributes end - - context 'when variables policy is specified' do - let(:config) do - YAML.dump(unit: { script: 'minitest', only: { variables: ['$CI_PIPELINE_SOURCE'] } }, - feature: { script: 'spinach', only: { variables: ['$UNDEFINED'] } }) - end - - let(:pipeline) { create(:ci_empty_pipeline) } - - it 'returns stage seeds only when variables expression is truthy' do - seeds = subject.stage_seeds(pipeline) - - expect(seeds.size).to eq 1 - expect(seeds.first.builds.dig(0, :name)).to eq 'unit' - end - end end describe 'only / except policies validations' do |