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 key and values into strings' do
    is_expected.to eq([
      { key: 'key', value: 'value', public: true },
      { key: 'wee', value: '1', public: false }])
  end
end

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

Fix tests because now we don't convert values
Fix tests because now we don't convert values
