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 end
def reset! def reset!
entreprise.destroy
etablissement.destroy etablissement.destroy
entreprise.destroy
update_attributes(autorisation_donnees: false) update_attributes(autorisation_donnees: false)
end end

View file

@ -37,5 +37,6 @@ class TypeDeChamp < ActiveRecord::Base
def change_header_section_mandatory def change_header_section_mandatory
self.mandatory = false if self.type_champ == 'header_section' self.mandatory = false if self.type_champ == 'header_section'
true
end end
end end