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.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/work_items.rb b/spec/factories/work_items.rb
new file mode 100644
index 00000000000..6d9dcac6165
--- /dev/null
+++ b/spec/factories/work_items.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :work_item, traits: [:has_internal_id] do
+ title { generate(:title) }
+ project
+ author { project.creator }
+ updated_by { author }
+ relative_position { RelativePositioning::START_POSITION }
+ issue_type { :issue }
+ association :work_item_type, :default
+ end
+end