diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-07 19:16:17 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-12-11 10:30:40 +0200 |
commit | d7010fdcd7c73c32c71cc4c635472014597cee81 (patch) | |
tree | a848d3f4a5562e9acc72f89d4a1d20c762b8edbe /spec/factories/groups.rb | |
parent | b552a4eb18ad1f3e8b9c0a4e56898a36d3d9d8de (diff) | |
download | gitlab-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.rb | 4 |
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 |