Rename `Gitlab::Serialize` module to reuse it later
This commit is contained in:
parent
50aec8dd0d
commit
10c1a4d8e4
|
@ -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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
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
|
|
@ -1,6 +1,6 @@
|
||||||
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
|
Loading…
Reference in New Issue