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 <grzesiek.bizon@gmail.com>2018-03-07 12:09:53 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-07 12:09:53 +0300
commita194b1982426b5f2411ee4a62ac3432de293528b (patch)
tree5f303c65b50395ae35eaf9c3b4e9875cfbbc83c3 /spec/lib/gitlab/ci/variables/collection_spec.rb
parenta2a8e36178853b5f8fa2eda306b33f8f97970745 (diff)
Make variables collection to runner mapping explicit
Diffstat (limited to 'spec/lib/gitlab/ci/variables/collection_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/variables/collection_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/ci/variables/collection_spec.rb b/spec/lib/gitlab/ci/variables/collection_spec.rb
index 39ed1cb4c26..16c23ae450a 100644
--- a/spec/lib/gitlab/ci/variables/collection_spec.rb
+++ b/spec/lib/gitlab/ci/variables/collection_spec.rb
@@ -52,11 +52,11 @@ describe Gitlab::Ci::Variables::Collection do
end
end
- describe '#to_hash' do
- it 'creates a hash / value mapping' do
+ describe '#to_runner_variables' do
+ it 'creates an array of hashes in a runner-compatible format' do
collection = described_class.new([{ key: 'TEST', value: 1 }])
- expect(collection.to_hash)
+ expect(collection.to_runner_variables)
.to eq [{ key: 'TEST', value: 1, public: false }]
end
end