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/work_items.rb')
-rw-r--r--spec/factories/work_items.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/work_items.rb b/spec/factories/work_items.rb
index 4a2186f2fcf..1827f2a590b 100644
--- a/spec/factories/work_items.rb
+++ b/spec/factories/work_items.rb
@@ -26,6 +26,18 @@ FactoryBot.define do
closed_at { Time.now }
end
+ trait :group_level do
+ project { nil }
+ association :namespace, factory: :group
+ association :author, factory: :user
+ end
+
+ trait :user_namespace_level do
+ project { nil }
+ association :namespace, factory: :user_namespace
+ association :author, factory: :user
+ end
+
trait :issue do
association :work_item_type, :default, :issue
end