diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-03-17 19:42:46 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-03-17 19:42:46 -0300 |
commit | 0a7f7161198feaa9a4cae7c16669a0e6187aed33 (patch) | |
tree | 445dcbd9f473be2af293a299b634525725a70666 /spec/support | |
parent | a18ac62756573a2da2c42ca50b6f30033be6fa63 (diff) | |
download | gitlab-ce-0a7f7161198feaa9a4cae7c16669a0e6187aed33.tar.gz |
Code fixes
Diffstat (limited to 'spec/support')
-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 |