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
b988a40b
Commit
b988a40b
authored
Dec 24, 2021
by
Vijay Hawoldar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional spec scenario
parent
89fb1215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ee/spec/models/member_spec.rb
ee/spec/models/member_spec.rb
+2
-0
No files found.
ee/spec/models/member_spec.rb
View file @
b988a40b
...
...
@@ -247,9 +247,11 @@ RSpec.describe Member, type: :model do
end
describe
'.distinct_awaiting_or_invited_for_group'
do
let_it_be
(
:other_sub_group
)
{
create
(
:group
,
parent:
group
)
}
let_it_be
(
:active_group_member
)
{
create
(
:group_member
,
group:
group
)
}
let_it_be
(
:awaiting_group_member
)
{
create
(
:group_member
,
:awaiting
,
group:
group
)
}
let_it_be
(
:awaiting_subgroup_member
)
{
create
(
:group_member
,
:awaiting
,
group:
sub_group
)
}
let_it_be
(
:awaiting_other_subgroup_member
)
{
create
(
:group_member
,
:awaiting
,
user:
awaiting_subgroup_member
.
user
,
group:
other_sub_group
)
}
let_it_be
(
:awaiting_project_member
)
{
create
(
:project_member
,
:awaiting
,
project:
project
)
}
let_it_be
(
:awaiting_invited_member
)
{
create
(
:group_member
,
:awaiting
,
:invited
,
group:
group
)
}
let_it_be
(
:active_invited_member
)
{
create
(
:group_member
,
:invited
,
group:
group
)
}
...
...
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