diff options
Diffstat (limited to 'spec/support/group_access_helper.rb')
-rw-r--r-- | spec/support/group_access_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/group_access_helper.rb b/spec/support/group_access_helper.rb index a1a8fb2bd72..c8ed0e406a1 100644 --- a/spec/support/group_access_helper.rb +++ b/spec/support/group_access_helper.rb @@ -14,4 +14,8 @@ module GroupAccessHelper create(:user).tap { |user| grp.add_user(user, level) } end + + def external_guest(grp=group()) + create(:user, external: true).tap { |user| grp.add_user(user, Gitlab::Access::GUEST) } + end end |