summaryrefslogtreecommitdiff
path: root/spec/factories/groups.rb
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-03-22 01:24:52 +0000
committerRobert Speicher <robert@gitlab.com>2016-03-22 01:24:52 +0000
commit3a78f7caa0523190acb09c5ed91eab3e19da62ab (patch)
tree8d903905022ad537aa46aee7cd0b7f8f239aa23e /spec/factories/groups.rb
parent0305dd98b32b5a989f2b84e0810cf5ddc14abd7f (diff)
parent503244eb9638bb141e3883d40281d7188fe8c02e (diff)
downloadgitlab-ce-3a78f7caa0523190acb09c5ed91eab3e19da62ab.tar.gz
Merge branch 'issue_12658' into 'master'
Add group visibility level Supersedes https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3051 Closes #12658 See merge request !3323
Diffstat (limited to 'spec/factories/groups.rb')
-rw-r--r--spec/factories/groups.rb12
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