summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-28 09:09:23 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-28 09:09:23 +0000
commitdba63244c19187d32f1f998403555f1893f5abdb (patch)
treed07f5aa931f280617456f80c5c139789598290cf /spec/factories
parent66d107f9394f719c63cb30f53d62b5b5db888e4b (diff)
downloadgitlab-ce-dba63244c19187d32f1f998403555f1893f5abdb.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ml/candidates.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/factories/ml/candidates.rb b/spec/factories/ml/candidates.rb
index 1b41e39d711..bcf1f25e19b 100644
--- a/spec/factories/ml/candidates.rb
+++ b/spec/factories/ml/candidates.rb
@@ -19,10 +19,10 @@ FactoryBot.define do
trait :with_artifact do
after(:create) do |candidate|
- FactoryBot.create(:generic_package,
- name: candidate.package_name,
- version: candidate.package_version,
- project: candidate.project)
+ candidate.package = FactoryBot.create(:generic_package,
+ name: candidate.package_name,
+ version: candidate.package_version,
+ project: candidate.project)
end
end
end