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
0e354f42
Commit
0e354f42
authored
Aug 06, 2020
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use let_it_be instead of let
parent
ab38e6c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ee/spec/finders/ee/group_members_finder_spec.rb
ee/spec/finders/ee/group_members_finder_spec.rb
+5
-5
No files found.
ee/spec/finders/ee/group_members_finder_spec.rb
View file @
0e354f42
...
...
@@ -5,12 +5,12 @@ require 'spec_helper'
RSpec
.
describe
GroupMembersFinder
do
subject
(
:finder
)
{
described_class
.
new
(
group
)
}
let
(
:group
)
{
create
:group
}
let
_it_be
(
:group
)
{
create
:group
}
let
(
:non_owner_access_level
)
{
Gitlab
::
Access
.
options
.
values
.
sample
}
let
!
(
:group_owner_membership
)
{
group
.
add_user
(
create
(
:user
),
Gitlab
::
Access
::
OWNER
)
}
let
!
(
:group_member_membership
)
{
group
.
add_user
(
create
(
:user
),
non_owner_access_level
)
}
let
!
(
:dedicated_member_account_membership
)
do
let
_it_be
(
:non_owner_access_level
)
{
Gitlab
::
Access
.
options
.
values
.
sample
}
let
_it_be
(
:group_owner_membership
)
{
group
.
add_user
(
create
(
:user
),
Gitlab
::
Access
::
OWNER
)
}
let
_it_be
(
:group_member_membership
)
{
group
.
add_user
(
create
(
:user
),
non_owner_access_level
)
}
let
_it_be
(
:dedicated_member_account_membership
)
do
group
.
add_user
(
create
(
:user
,
managing_group:
group
),
non_owner_access_level
)
end
...
...
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