Fix tests
This commit is contained in:
parent
8160d4d0df
commit
d78b64982b
2 changed files with 3 additions and 2 deletions
|
@ -287,8 +287,8 @@ class Dossier < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def reset!
|
||||
entreprise.destroy
|
||||
etablissement.destroy
|
||||
entreprise.destroy
|
||||
|
||||
update_attributes(autorisation_donnees: false)
|
||||
end
|
||||
|
|
|
@ -28,7 +28,7 @@ class TypeDeChamp < ActiveRecord::Base
|
|||
before_validation :change_header_section_mandatory
|
||||
|
||||
def self.type_de_champs_list_fr
|
||||
type_champs.map { |champ| [ I18n.t("activerecord.attributes.type_de_champ.type_champs.#{champ.last}"), champ.first ] }
|
||||
type_champs.map { |champ| [I18n.t("activerecord.attributes.type_de_champ.type_champs.#{champ.last}"), champ.first] }
|
||||
end
|
||||
|
||||
def field_for_list?
|
||||
|
@ -37,5 +37,6 @@ class TypeDeChamp < ActiveRecord::Base
|
|||
|
||||
def change_header_section_mandatory
|
||||
self.mandatory = false if self.type_champ == 'header_section'
|
||||
true
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue