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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
09aec212
Commit
09aec212
authored
Jul 07, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark a subgroup-related spec as PostgreSQL-only
Closes
https://gitlab.com/gitlab-org/gitlab-ce/issues/34847
parent
7c35ecf7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spec/models/group_spec.rb
spec/models/group_spec.rb
+7
-7
No files found.
spec/models/group_spec.rb
View file @
09aec212
...
...
@@ -466,13 +466,13 @@ describe Group, models: true do
it_behaves_like
'ref is protected'
end
context
'when group has children'
do
let
!
(
:group_child
)
{
create
(
:group
,
parent:
group
)
}
let
!
(
:variable_child
)
{
create
(
:ci_group_variable
,
group
:
group_child
)
}
let
!
(
:group_child_3
)
{
create
(
:group
,
parent:
group_child_2
)
}
let
!
(
:variable_child_3
)
{
create
(
:ci_group_variable
,
group:
group_child_3
)
}
let
!
(
:group_child_2
)
{
create
(
:group
,
parent:
group_child
)
}
let
!
(
:variable_child_2
)
{
create
(
:ci_group_variable
,
group:
group_child_2
)
}
context
'when group has children'
,
:postgresql
do
let
(
:group_child
)
{
create
(
:group
,
parent:
group
)
}
let
(
:group_child_2
)
{
create
(
:group
,
parent
:
group_child
)
}
let
(
:group_child_3
)
{
create
(
:group
,
parent:
group_child_2
)
}
let
(
:variable_child
)
{
create
(
:ci_group_variable
,
group:
group_child
)
}
let
(
:variable_child_2
)
{
create
(
:ci_group_variable
,
group:
group_child_2
)
}
let
(
:variable_child_3
)
{
create
(
:ci_group_variable
,
group:
group_child_3
)
}
it
'returns all variables belong to the group and parent groups'
do
expected_array1
=
[
protected_variable
,
secret_variable
]
...
...
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