Solo crear el DeployLocal una vez

This commit is contained in:
f 2021-08-07 19:00:27 -03:00
parent 70c8bcbcd1
commit 11e45bbc05
2 changed files with 4 additions and 7 deletions

View file

@ -9,4 +9,6 @@
= sanitize_markdown t('.help', url: deploy.object.url),
tags: %w[p strong em a]
= deploy.hidden_field :type
-# No duplicarlos una vez que existen.
- unless deploy.object.persisted?
= deploy.hidden_field :type

View file

@ -119,12 +119,7 @@ class SitesControllerTest < ActionDispatch::IntegrationTest
title: name,
description: name * 2,
design_id: design.id,
licencia_id: Licencia.all.second.id,
deploys_attributes: {
'0' => {
type: 'DeployLocal'
}
}
licencia_id: Licencia.all.second.id
}
}