diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-16 21:07:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-16 21:07:32 +0300 |
commit | 6ba7c824e92d68c6ae25f64bda5ab213ad9c9a58 (patch) | |
tree | 72b28f0f5222162a67a1919ff25beff4c2cabc2d /spec/factories | |
parent | acee9d6fb529ca8fb91b2b07bd49bd207df23c51 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/releases.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/releases.rb b/spec/factories/releases.rb index a07d4ef6c2e..c4da8474cb7 100644 --- a/spec/factories/releases.rb +++ b/spec/factories/releases.rb @@ -35,5 +35,15 @@ FactoryBot.define do create_list(:milestone, evaluator.milestones_count, project: evaluator.project, releases: [release]) end end + + trait :with_catalog_resource_version do + catalog_resource_version do + if instance.project&.catalog_resource + association :ci_catalog_resource_version, + catalog_resource: instance.project&.catalog_resource, + release: instance + end + end + end end end |