diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-21 17:40:02 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-21 17:40:02 +0300 |
commit | 94bb16aeabb198b64f07890d8d0073890b7e5758 (patch) | |
tree | 7c6d1403b87989d6af3e721fbba18d21579199f2 /spec/factories | |
parent | 67b6dad3667a1e3b0a01c416ad5dbea2c19cdbaf (diff) | |
parent | e2c2bd69f2ccb6b8df41685b48259c4cde91eb8b (diff) |
Merge branch 'rs-simplify-fetch_members' into 'master'
Simplify ProjectTeam#fetch_members to satisfy flog
## What does this MR do?
- Add specs for ProjectTeam#fetch_members
- Simplify ProjectTeam#fetch_members to satisfy flog
## What are the relevant issue numbers?
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/22200
See merge request !6431
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/group_members.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/group_members.rb b/spec/factories/group_members.rb index 2044ebec09a..795df5dfda9 100644 --- a/spec/factories/group_members.rb +++ b/spec/factories/group_members.rb @@ -3,5 +3,11 @@ FactoryGirl.define do access_level { GroupMember::OWNER } group user + + trait(:guest) { access_level GroupMember::GUEST } + trait(:reporter) { access_level GroupMember::REPORTER } + trait(:developer) { access_level GroupMember::DEVELOPER } + trait(:master) { access_level GroupMember::MASTER } + trait(:owner) { access_level GroupMember::OWNER } end end |