Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-06-21 14:17:35 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2018-06-25 15:48:34 +0300
commit156339569d52bef66fe41c85d29ab3c9865f7362 (patch)
tree191eab86b95578348e6d0348ada442fdab4796a8 /spec/models
parent60f51cd20af5db8759c31c32a9c45db5b5be2199 (diff)
Enforce setting string as value of the CI/CD variable
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/build_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 51b9b518117..6758adc59eb 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1871,7 +1871,11 @@ describe Ci::Build do
end
context 'when yaml_variables are undefined' do
- let(:pipeline) { create(:ci_pipeline, project: project) }
+ let(:pipeline) do
+ create(:ci_pipeline, project: project,
+ sha: project.commit.id,
+ ref: project.default_branch)
+ end
before do
build.yaml_variables = nil