Rename TypeDeChamps to TypeDeChamp
This commit is contained in:
parent
519af34c82
commit
f3d8645426
34 changed files with 644 additions and 634 deletions
|
@ -14,7 +14,7 @@ FactoryGirl.define do
|
|||
|
||||
trait :with_procedure do
|
||||
after(:build) do |dossier, _evaluator|
|
||||
procedure = create(:procedure, :with_two_type_de_piece_justificative, :with_type_de_champs)
|
||||
procedure = create(:procedure, :with_two_type_de_piece_justificative, :with_type_de_champ)
|
||||
dossier.procedure = procedure
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,11 +4,11 @@ FactoryGirl.define do
|
|||
libelle 'Demande de subvention'
|
||||
description "Demande de subvention à l'intention des associations"
|
||||
|
||||
trait :with_type_de_champs do
|
||||
trait :with_type_de_champ do
|
||||
after(:build) do |procedure, _evaluator|
|
||||
type_de_champs = create(:type_de_champs)
|
||||
type_de_champ = create(:type_de_champ)
|
||||
|
||||
procedure.types_de_champs << type_de_champs
|
||||
procedure.types_de_champ << type_de_champ
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
FactoryGirl.define do
|
||||
factory :type_de_champs do
|
||||
factory :type_de_champ do
|
||||
libelle 'Libellé'
|
||||
description 'description de votre projet'
|
||||
type_champs 'textarea'
|
Loading…
Add table
Add a link
Reference in a new issue