Commit e85e1dbb authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix hash syntax in variables collection class

parent 87637693
...@@ -3,7 +3,7 @@ require 'spec_helper' ...@@ -3,7 +3,7 @@ require 'spec_helper'
describe Gitlab::Ci::Variables::Collection do describe Gitlab::Ci::Variables::Collection do
describe '.new' do describe '.new' do
it 'can be initialized with an array' 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]) collection = described_class.new([variable])
expect(collection.first.to_h).to include variable expect(collection.first.to_h).to include variable
...@@ -39,7 +39,7 @@ describe Gitlab::Ci::Variables::Collection do ...@@ -39,7 +39,7 @@ describe Gitlab::Ci::Variables::Collection do
describe '#+' do describe '#+' do
it 'makes it possible to combine with an array' do it 'makes it possible to combine with an array' do
collection = described_class.new([{ key: 'TEST', value: 1 }]) 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 expect((collection + variables).count).to eq 2
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment