diff options
Diffstat (limited to 'spec/factories/deployments.rb')
-rw-r--r-- | spec/factories/deployments.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/deployments.rb b/spec/factories/deployments.rb index 89ff1c527df..50dc304a10e 100644 --- a/spec/factories/deployments.rb +++ b/spec/factories/deployments.rb @@ -17,6 +17,10 @@ FactoryBot.define do unless deployment.project.repository_exists? allow(deployment.project.repository).to receive(:create_ref) end + + if deployment.cluster && deployment.cluster.project_type? && deployment.cluster.project.nil? + deployment.cluster.projects << deployment.project + end end trait :review_app do |