diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 14:22:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 14:22:11 +0000 |
commit | 0c872e02b2c822e3397515ec324051ff540f0cd5 (patch) | |
tree | ce2fb6ce7030e4dad0f4118d21ab6453e5938cdd /spec/factories/work_items.rb | |
parent | f7e05a6853b12f02911494c4b3fe53d9540d74fc (diff) | |
download | gitlab-ce-15.7.0-rc42.tar.gz |
Add latest changes from gitlab-org/gitlab@15-7-stable-eev15.7.0-rc42
Diffstat (limited to 'spec/factories/work_items.rb')
-rw-r--r-- | spec/factories/work_items.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/work_items.rb b/spec/factories/work_items.rb index 205b071a5d4..cff246d4071 100644 --- a/spec/factories/work_items.rb +++ b/spec/factories/work_items.rb @@ -27,5 +27,15 @@ FactoryBot.define do trait :last_edited_by_user do association :last_edited_by, factory: :user end + + trait :objective do + issue_type { :objective } + association :work_item_type, :default, :objective + end + + trait :key_result do + issue_type { :key_result } + association :work_item_type, :default, :key_result + end end end |