diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-22 15:27:55 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-22 18:29:54 +0100 |
commit | 453b33478877920b957bfb584cba57c388886560 (patch) | |
tree | 82df06f5ac5206d204026821f7928290a09e6745 | |
parent | 80de2a8a64b5993a23441c05181b41aa8fad9f30 (diff) | |
download | gitlab-ce-453b33478877920b957bfb584cba57c388886560.tar.gz |
Test dependencies defined as symbols
-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'] } |