diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-30 22:42:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-30 22:42:13 +0000 |
commit | d455bcf1e412ab4a4abdfbe691fc40e3d4a0ce8a (patch) | |
tree | 05455701cc0a4a220d3c1e089b39a01a310aa2a2 /spec/factories | |
parent | b8cacd68a6297f2c6cdd454a3d82a487367f2e70 (diff) | |
download | gitlab-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.rb | 2 |
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 |