Commit 7f2f683e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename ci config module that holds nodes to Node

parent 6609589b
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
module Entry module Node
class BeforeScript < BaseEntry class BeforeScript < Entry
def leaf? def leaf?
true true
end end
......
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
module Entry module Node
class BaseEntry class Entry
def initialize(hash, config, parent = nil) def initialize(hash, config, parent = nil)
@hash = hash @hash = hash
@config = config @config = config
@parent = parent @parent = parent
end end
def allowed_keys
[]
end
end end
end end
end end
......
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
module Entry module Node
class Global < BaseEntry class Global < Entry
def allowed_keys
[]
end
end end
end end
end end
......
require 'spec_helper' require 'spec_helper'
describe Gitlab::Ci::Config::Entry::BeforeScript do describe Gitlab::Ci::Config::Node::BeforeScript do
let(:entry) { described_class.new(hash, config) } let(:entry) { described_class.new(hash, config) }
describe '#leaf?' do describe '#leaf?' do
......
require 'spec_helper' require 'spec_helper'
describe Gitlab::Ci::Config::Entry::Global do describe Gitlab::Ci::Config::Node::Global do
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