f540ffcef6
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
43 lines
774 B
Ruby
43 lines
774 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Gitlab::Config::Entry::Undefined do
|
|
let(:entry) { described_class.new }
|
|
|
|
describe '#leaf?' do
|
|
it 'is leaf node' do
|
|
expect(entry).to be_leaf
|
|
end
|
|
end
|
|
|
|
describe '#valid?' do
|
|
it 'is always valid' do
|
|
expect(entry).to be_valid
|
|
end
|
|
end
|
|
|
|
describe '#errors' do
|
|
it 'is does not contain errors' do
|
|
expect(entry.errors).to be_empty
|
|
end
|
|
end
|
|
|
|
describe '#value' do
|
|
it 'returns nil' do
|
|
expect(entry.value).to eq nil
|
|
end
|
|
end
|
|
|
|
describe '#relevant?' do
|
|
it 'is not relevant' do
|
|
expect(entry.relevant?).to eq false
|
|
end
|
|
end
|
|
|
|
describe '#specified?' do
|
|
it 'is not defined' do
|
|
expect(entry.specified?).to eq false
|
|
end
|
|
end
|
|
end
|