diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-07 12:09:53 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-07 12:09:53 +0300 |
commit | a194b1982426b5f2411ee4a62ac3432de293528b (patch) | |
tree | 5f303c65b50395ae35eaf9c3b4e9875cfbbc83c3 /spec/lib | |
parent | a2a8e36178853b5f8fa2eda306b33f8f97970745 (diff) |
Make variables collection to runner mapping explicit
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/ci/variables/collection_spec.rb | 6 |
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 |