Fix tests

This commit is contained in:
Xavier J 2016-10-05 15:01:31 +02:00
parent 8160d4d0df
commit d78b64982b
2 changed files with 3 additions and 2 deletions

View file

@ -287,8 +287,8 @@ class Dossier < ActiveRecord::Base
end
def reset!
entreprise.destroy
etablissement.destroy
entreprise.destroy
update_attributes(autorisation_donnees: false)
end

View file

@ -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