diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-18 13:28:16 +0100 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-03-18 16:58:04 -0300 |
commit | b959ae553b1243e081d557b1e545d30830931e5b (patch) | |
tree | ce6c7410a97d93645fce4eb4ae77f1e8a1f9879b /spec/factories/groups.rb | |
parent | 0a7f7161198feaa9a4cae7c16669a0e6187aed33 (diff) | |
download | gitlab-ce-b959ae553b1243e081d557b1e545d30830931e5b.tar.gz |
Improve group visibility level feature
Diffstat (limited to 'spec/factories/groups.rb')
-rw-r--r-- | spec/factories/groups.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb index 4a3a155d7ff..2d47a6f6c4c 100644 --- a/spec/factories/groups.rb +++ b/spec/factories/groups.rb @@ -3,5 +3,17 @@ FactoryGirl.define do sequence(:name) { |n| "group#{n}" } path { name.downcase.gsub(/\s/, '_') } type 'Group' + + trait :public do + visibility_level Gitlab::VisibilityLevel::PUBLIC + end + + trait :internal do + visibility_level Gitlab::VisibilityLevel::INTERNAL + end + + trait :private do + visibility_level Gitlab::VisibilityLevel::PRIVATE + end end end |