summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-22 13:46:20 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-22 13:46:20 +0200
commite85e1dbb57af835945b37dc03d1f850cbdaf4d82 (patch)
tree5ece043d3da852bd9f83a40d4daddcc5e6eb2dd3
parent87637693acbd443c674bcbf26d87281156a70761 (diff)
downloadgitlab-ce-backstage/gb/refactor-ci-cd-variables-collections.tar.gz
Fix hash syntax in variables collection classbackstage/gb/refactor-ci-cd-variables-collections
-rw-r--r--spec/lib/gitlab/ci/variables/collection_spec.rb4
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