diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-22 15:25:53 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-23 12:55:23 +0100 |
commit | 8fac12c590e808537c447119343f860f269eb67d (patch) | |
tree | 3bc019657da0544f603beb2c3a4c783c7e364250 /spec | |
parent | b6806d0cbccc0e989f8ebdd96a9999415567218b (diff) | |
download | gitlab-ce-8fac12c590e808537c447119343f860f269eb67d.tar.gz |
Fix build dependencies, when the dependency is a string
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/ci/gitlab_ci_yaml_processor_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb index b79b8147ce0..d9812032c85 100644 --- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb +++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb @@ -492,19 +492,19 @@ module Ci end context 'dependencies to builds' do - let(:dependencies) { [:build1, :build2] } + let(:dependencies) { ['build1', 'build2'] } it { expect { subject }.to_not raise_error } end context 'undefined dependency' do - let(:dependencies) { [:undefined] } + let(:dependencies) { ['undefined'] } it { expect { subject }.to raise_error(GitlabCiYamlProcessor::ValidationError, 'test1 job: undefined dependency: undefined') } end context 'dependencies to deploy' do - let(:dependencies) { [:deploy] } + let(:dependencies) { ['deploy'] } it { expect { subject }.to raise_error(GitlabCiYamlProcessor::ValidationError, 'test1 job: dependency deploy is not defined in prior stages') } end |