summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-13 14:01:48 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-13 14:01:48 +0100
commit937e7f9e9669d4939cd6c5055a90339ff79d216b (patch)
tree5f794b0f892fbbc117101097b805c2da5dcac45e /spec/models
parent0cf0a7a898f06fc2a154683e76dc9199832c01c8 (diff)
downloadgitlab-ce-937e7f9e9669d4939cd6c5055a90339ff79d216b.tar.gz
Make predefined variables in a collection public by default
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/build_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index c27313ed88b..1365c1d84d6 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1835,10 +1835,10 @@ describe Ci::Build do
end
context 'returns variables in valid order' do
- let(:build_pre_var) { { key: 'build', value: 'value' } }
- let(:project_pre_var) { { key: 'project', value: 'value' } }
- let(:pipeline_pre_var) { { key: 'pipeline', value: 'value' } }
- let(:build_yaml_var) { { key: 'yaml', value: 'value' } }
+ let(:build_pre_var) { { key: 'build', value: 'value', public: true } }
+ let(:project_pre_var) { { key: 'project', value: 'value', public: true } }
+ let(:pipeline_pre_var) { { key: 'pipeline', value: 'value', public: true } }
+ let(:build_yaml_var) { { key: 'yaml', value: 'value', public: true } }
before do
allow(build).to receive(:predefined_variables) { [build_pre_var] }