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

Rename ci config module that holds nodes to Node

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