return nil when no traitement time

This commit is contained in:
Christophe Robillard 2021-06-17 10:30:27 +02:00
parent 887c5cb4a9
commit 896190b91e
2 changed files with 10 additions and 5 deletions

View file

@ -45,7 +45,7 @@ describe ProcedureStatsConcern do
context 'where there is no processed dossier' do
let(:delays) { [] }
it { expect(procedure.usual_traitement_time_for_recent_dossiers(30)).to eq 0 }
it { expect(procedure.usual_traitement_time_for_recent_dossiers(30)).to eq nil }
end
end