fix(spec): try fix dossier expiration spec
This commit is contained in:
parent
b5871f72b0
commit
6909337500
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,9 @@ describe ExpiredDossiersDeletionService do
|
|||
let(:reference_date) { Date.parse("March 8") }
|
||||
|
||||
describe '#process_expired_dossiers_brouillon' do
|
||||
before { Timecop.freeze(reference_date) }
|
||||
after { Timecop.return }
|
||||
|
||||
let(:today) { Time.zone.now.at_beginning_of_day }
|
||||
let(:date_close_to_expiration) { today - procedure.duree_conservation_dossiers_dans_ds.months + 13.days }
|
||||
let(:date_expired) { today - procedure.duree_conservation_dossiers_dans_ds.months - 6.days }
|
||||
|
|
Loading…
Reference in a new issue