Commit 10c1a4d8 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename `Gitlab::Serialize` module to reuse it later

parent 50aec8dd
...@@ -19,7 +19,7 @@ module Ci ...@@ -19,7 +19,7 @@ module Ci
end end
serialize :options serialize :options
serialize :yaml_variables, Gitlab::Serialize::Ci::Variables serialize :yaml_variables, Gitlab::Serializer::Ci::Variables
validates :coverage, numericality: true, allow_blank: true validates :coverage, numericality: true, allow_blank: true
validates_presence_of :ref validates_presence_of :ref
......
module Gitlab module Gitlab
module Serialize module Serializer
module Ci module Ci
# This serializer could make sure our YAML variables' keys and values # This serializer could make sure our YAML variables' keys and values
# are always strings. This is more for legacy build data because # are always strings. This is more for legacy build data because
......
require 'spec_helper' require 'spec_helper'
describe Gitlab::Serialize::Ci::Variables do describe Gitlab::Serializer::Ci::Variables do
subject do subject do
described_class.load(described_class.dump(object)) described_class.load(described_class.dump(object))
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