summaryrefslogtreecommitdiff
path: root/spec/factories/groups.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-07 19:16:17 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-11 10:30:40 +0200
commitd7010fdcd7c73c32c71cc4c635472014597cee81 (patch)
treea848d3f4a5562e9acc72f89d4a1d20c762b8edbe /spec/factories/groups.rb
parentb552a4eb18ad1f3e8b9c0a4e56898a36d3d9d8de (diff)
downloadgitlab-ce-d7010fdcd7c73c32c71cc4c635472014597cee81.tar.gz
Create nested group factory
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/factories/groups.rb')
-rw-r--r--spec/factories/groups.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb
index ebd3595ea64..ece6beb9fa9 100644
--- a/spec/factories/groups.rb
+++ b/spec/factories/groups.rb
@@ -19,5 +19,9 @@ FactoryGirl.define do
trait :access_requestable do
request_access_enabled true
end
+
+ trait :nested do
+ parent factory: :group
+ end
end
end