Solo crear el DeployLocal una vez
This commit is contained in:
parent
70c8bcbcd1
commit
11e45bbc05
2 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue