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:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-06-25 16:14:35 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-06-25 16:14:35 +0300
commit7a99a8c2ce38823ca7336ac4e3cb328274d7338b (patch)
tree2368643987191e0870fdbc137a6bbd2d073e33c6 /spec/models
parent7668c9660fe30338044afd7886a0fac56e6e82b9 (diff)
parented99467c03531015bec5126b453f5ea4f1cbd4b8 (diff)
Merge branch 'enforce-variable-value-to-be-a-string' into 'master'
Enforce setting string as value of the CI/CD variable Closes #48210 See merge request gitlab-org/gitlab-ce!20061
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