[Fix #1309] Datetime value should be print with yyyy-mm-dd format

This commit is contained in:
Mathieu Magnin 2018-01-19 11:50:34 +01:00 committed by Paul Chavard
parent fdd6cedeb8
commit dcb38d79a3
5 changed files with 38 additions and 6 deletions

View file

@ -179,10 +179,10 @@ describe TagsSubstitutionConcern, type: :model do
dossier.champs
.select { |champ| champ.type_champ == 'datetime' }
.first
.update_attributes(value: '13/09/2017 09:00')
.update_attributes(value: '2017-09-13 09:00')
end
it { is_expected.to eq('15/04/2017 13/09/2017 09:00') }
it { is_expected.to eq('15/04/2017 2017-09-13 09:00') }
end
end
end