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>2017-09-22 14:46:20 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-22 14:46:20 +0300
commite85e1dbb57af835945b37dc03d1f850cbdaf4d82 (patch)
tree5ece043d3da852bd9f83a40d4daddcc5e6eb2dd3 /spec/lib/gitlab/ci/variables/collection_spec.rb
parent87637693acbd443c674bcbf26d87281156a70761 (diff)
Fix hash syntax in variables collection class
Diffstat (limited to 'spec/lib/gitlab/ci/variables/collection_spec.rb')
-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