summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-30 22:42:13 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-30 22:42:13 +0000
commitd455bcf1e412ab4a4abdfbe691fc40e3d4a0ce8a (patch)
tree05455701cc0a4a220d3c1e089b39a01a310aa2a2 /spec/factories
parentb8cacd68a6297f2c6cdd454a3d82a487367f2e70 (diff)
downloadgitlab-ce-d455bcf1e412ab4a4abdfbe691fc40e3d4a0ce8a.tar.gz
Add latest changes from gitlab-org/security/gitlab@13-10-stable-ee
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/pool_repositories.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/pool_repositories.rb b/spec/factories/pool_repositories.rb
index f0905d28c70..f3f3e33189b 100644
--- a/spec/factories/pool_repositories.rb
+++ b/spec/factories/pool_repositories.rb
@@ -6,7 +6,7 @@ FactoryBot.define do
state { :none }
before(:create) do |pool|
- pool.source_project = create(:project, :repository)
+ pool.source_project ||= create(:project, :repository)
pool.source_project.update!(pool_repository: pool)
end