diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-22 15:27:55 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-23 12:55:23 +0100 |
commit | 858bf727bc4841bf5bbcff7348fd46ea2090e753 (patch) | |
tree | a53e596121611d49045a9fb5b2c9fb93741f8c42 /spec | |
parent | 8fac12c590e808537c447119343f860f269eb67d (diff) | |
download | gitlab-ce-858bf727bc4841bf5bbcff7348fd46ea2090e753.tar.gz |
Test dependencies defined as symbols
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/ci/gitlab_ci_yaml_processor_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb index d9812032c85..dcb8a3451bd 100644 --- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb +++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb @@ -497,6 +497,12 @@ module Ci it { expect { subject }.to_not raise_error } end + context 'dependencies to builds defined as symbols' do + let(:dependencies) { [:build1, :build2] } + + it { expect { subject }.to_not raise_error } + end + context 'undefined dependency' do let(:dependencies) { ['undefined'] } |