summaryrefslogtreecommitdiff
path: root/spec/lib/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-03-22 15:25:53 +0100
committerRémy Coutable <remy@rymai.me>2016-03-23 12:55:23 +0100
commit8fac12c590e808537c447119343f860f269eb67d (patch)
tree3bc019657da0544f603beb2c3a4c783c7e364250 /spec/lib/ci
parentb6806d0cbccc0e989f8ebdd96a9999415567218b (diff)
downloadgitlab-ce-8fac12c590e808537c447119343f860f269eb67d.tar.gz
Fix build dependencies, when the dependency is a string
Diffstat (limited to 'spec/lib/ci')
-rw-r--r--spec/lib/ci/gitlab_ci_yaml_processor_spec.rb6
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