summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/serialize/ci/variables_spec.rb
blob: 7ea74da5252efec6b713024b29b42e0ffa279e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe Gitlab::Serialize::Ci::Variables do
  subject do
    described_class.load(described_class.dump(object))
  end

  let(:object) do
    [{ key: :key, value: 'value', public: true },
     { key: 'wee', value: 1, public: false }]
  end

  it 'converts keys into strings' do
    is_expected.to eq([
      { key: 'key', value: 'value', public: true },
      { key: 'wee', value: 1, public: false }])
  end
end