From e85e1dbb57af835945b37dc03d1f850cbdaf4d82 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Fri, 22 Sep 2017 13:46:20 +0200 Subject: Fix hash syntax in variables collection class --- spec/lib/gitlab/ci/variables/collection_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/lib/gitlab') 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 -- cgit v1.2.1