diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-22 13:46:20 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-22 13:46:20 +0200 |
commit | e85e1dbb57af835945b37dc03d1f850cbdaf4d82 (patch) | |
tree | 5ece043d3da852bd9f83a40d4daddcc5e6eb2dd3 /spec | |
parent | 87637693acbd443c674bcbf26d87281156a70761 (diff) | |
download | gitlab-ce-e85e1dbb57af835945b37dc03d1f850cbdaf4d82.tar.gz |
Fix hash syntax in variables collection classbackstage/gb/refactor-ci-cd-variables-collections
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/ci/variables/collection_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/variables/collection_spec.rb b/spec/lib/gitlab/ci/variables/collection_spec.rb index 0ded8581a86..39ed1cb4c26 100644 --- a/spec/lib/gitlab/ci/variables/collection_spec.rb +++ b/spec/lib/gitlab/ci/variables/collection_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Gitlab::Ci::Variables::Collection do describe '.new' do it 'can be initialized with an array' do - variable = { key: 'SOME_VAR', value: 'Some Value'} + variable = { key: 'SOME_VAR', value: 'Some Value' } collection = described_class.new([variable]) expect(collection.first.to_h).to include variable @@ -39,7 +39,7 @@ describe Gitlab::Ci::Variables::Collection do describe '#+' do it 'makes it possible to combine with an array' do collection = described_class.new([{ key: 'TEST', value: 1 }]) - variables = [{ key: 'TEST', value: 'something'}] + variables = [{ key: 'TEST', value: 'something' }] expect((collection + variables).count).to eq 2 end |