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
c2c6c4c6
Commit
c2c6c4c6
authored
Sep 01, 2017
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify nested_groups specs
parent
6c577346
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
spec/features/groups/share_lock_spec.rb
spec/features/groups/share_lock_spec.rb
+1
-1
spec/features/projects/members/share_with_group_spec.rb
spec/features/projects/members/share_with_group_spec.rb
+1
-1
spec/models/namespace_spec.rb
spec/models/namespace_spec.rb
+1
-1
spec/policies/group_policy_spec.rb
spec/policies/group_policy_spec.rb
+1
-1
spec/services/groups/update_service_spec.rb
spec/services/groups/update_service_spec.rb
+1
-1
No files found.
spec/features/groups/share_lock_spec.rb
View file @
c2c6c4c6
...
...
@@ -9,7 +9,7 @@ feature 'Group share lock' do
sign_in
(
root_owner
)
end
context
'with a subgroup'
do
context
'with a subgroup'
,
:nested_groups
do
given!
(
:subgroup
)
{
create
(
:group
,
parent:
root_group
)
}
context
'when enabling the parent group share lock'
do
...
...
spec/features/projects/members/share_with_group_spec.rb
View file @
c2c6c4c6
...
...
@@ -58,7 +58,7 @@ feature 'Project > Members > Share with Group', :js do
end
end
context
'for a project in a subgroup'
,
:
postgresql
do
context
'for a project in a subgroup'
,
:
nested_groups
do
let!
(
:group_to_share_with
)
{
create
(
:group
)
}
let
(
:root_group
)
{
create
(
:group
)
}
let
(
:subgroup
)
{
create
(
:group
,
parent:
root_group
)
}
...
...
spec/models/namespace_spec.rb
View file @
c2c6c4c6
...
...
@@ -407,7 +407,7 @@ describe Namespace do
it
{
expect
(
group
.
all_projects
.
to_a
).
to
eq
([
project2
,
project1
])
}
end
describe
'#share_with_group_lock with subgroups'
do
describe
'#share_with_group_lock with subgroups'
,
:nested_groups
do
context
'when creating a subgroup'
do
let
(
:subgroup
)
{
create
(
:group
,
parent:
root_group
)}
...
...
spec/policies/group_policy_spec.rb
View file @
c2c6c4c6
...
...
@@ -244,7 +244,7 @@ describe GroupPolicy do
end
describe
'change_share_with_group_lock'
do
context
'when the group has a parent'
do
context
'when the group has a parent'
,
:nested_groups
do
let
(
:group
)
{
create
(
:group
,
parent:
parent
)
}
context
'when the parent share_with_group_lock is enabled'
do
...
...
spec/services/groups/update_service_spec.rb
View file @
c2c6c4c6
...
...
@@ -101,7 +101,7 @@ describe Groups::UpdateService do
end
end
context
'for a subgroup'
do
context
'for a subgroup'
,
:nested_groups
do
let
(
:subgroup
)
{
create
(
:group
,
:private
,
parent:
private_group
)
}
context
'when the parent group share_with_group_lock is enabled'
do
...
...
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