From 156339569d52bef66fe41c85d29ab3c9865f7362 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Thu, 21 Jun 2018 13:17:35 +0200 Subject: Enforce setting string as value of the CI/CD variable --- spec/models/ci/build_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/models') 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 -- cgit v1.2.3