Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/groups.rb')
-rw-r--r--spec/factories/groups.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb
index 152ae061605..aa264ad3377 100644
--- a/spec/factories/groups.rb
+++ b/spec/factories/groups.rb
@@ -118,5 +118,14 @@ FactoryBot.define do
create(:crm_settings, group: group, enabled: true)
end
end
+
+ trait :test_group do
+ path { "test-group-fulfillment#{SecureRandom.hex(4)}" }
+ created_at { 4.days.ago }
+
+ after(:create) do |group|
+ group.add_owner(create(:user, email: "test-user-#{SecureRandom.hex(4)}@test.com"))
+ end
+ end
end
end