Commit 082b64c3 authored by Thong Kuah's avatar Thong Kuah

EE: Move EE specific spec to ee/

parent 93de02d0
......@@ -506,6 +506,29 @@ describe Project do
end
end
describe '#root_namespace' do
let(:project) { build(:project, namespace: parent) }
subject { project.root_namespace }
context 'when namespace has parent group', :nested_groups do
let(:root_ancestor) { create(:group) }
let(:parent) { create(:group, parent: root_ancestor) }
it 'returns root ancestor' do
is_expected.to eq(root_ancestor)
end
end
context 'when namespace is root ancestor' do
let(:parent) { create(:group) }
it 'returns current namespace' do
is_expected.to eq(parent)
end
end
end
describe '#shared_runners_limit_namespace' do
set(:root_ancestor) { create(:group) }
set(:group) { create(:group, parent: root_ancestor) }
......
......@@ -3829,29 +3829,6 @@ describe Project do
end
end
describe '#root_namespace' do
let(:project) { build(:project, namespace: parent) }
subject { project.root_namespace }
context 'when namespace has parent group', :nested_groups do
let(:root_ancestor) { create(:group) }
let(:parent) { create(:group, parent: root_ancestor) }
it 'returns root ancestor' do
is_expected.to eq(root_ancestor)
end
end
context 'when namespace is root ancestor' do
let(:parent) { create(:group) }
it 'returns current namespace' do
is_expected.to eq(parent)
end
end
end
describe '#write_repository_config' do
set(:project) { create(:project, :repository) }
......
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