specs: fix #usual_traitement_time tests when near the DST date
This commit is contained in:
parent
2e8d365b93
commit
a458693a19
1 changed files with 4 additions and 0 deletions
|
@ -814,11 +814,15 @@ describe Procedure do
|
|||
end
|
||||
|
||||
before do
|
||||
Timecop.freeze(Time.utc(2019, 6, 1, 12, 0))
|
||||
|
||||
delays.each do |delay|
|
||||
create_dossier(construction_date: 1.week.ago - delay, instruction_date: 1.week.ago - delay + 12.hours, processed_date: 1.week.ago)
|
||||
end
|
||||
end
|
||||
|
||||
after { Timecop.return }
|
||||
|
||||
context 'when there are several processed dossiers' do
|
||||
let(:delays) { [1.day, 2.days, 2.days, 2.days, 2.days, 3.days, 3.days, 3.days, 3.days, 12.days] }
|
||||
|
||||
|
|
Loading…
Reference in a new issue