Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
082b64c3
Commit
082b64c3
authored
Dec 04, 2018
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EE: Move EE specific spec to ee/
parent
93de02d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
ee/spec/models/project_spec.rb
ee/spec/models/project_spec.rb
+23
-0
spec/models/project_spec.rb
spec/models/project_spec.rb
+0
-23
No files found.
ee/spec/models/project_spec.rb
View file @
082b64c3
...
...
@@ -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
)
}
...
...
spec/models/project_spec.rb
View file @
082b64c3
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment