fix(dossier): nullify close to expiration notice timestamps when changing state

This commit is contained in:
Paul Chavard 2021-11-04 19:05:04 +01:00
parent 18808358f9
commit da47f491b3
4 changed files with 94 additions and 30 deletions

View file

@ -340,15 +340,11 @@ describe Instructeurs::DossiersController, type: :controller do
end
before do
Timecop.freeze(Time.zone.now)
expect_any_instance_of(AttestationTemplate)
.to receive(:attestation_for)
.with(have_attributes(motivation: "Yallah", processed_at: Time.zone.now))
.with(have_attributes(motivation: "Yallah"))
end
after { Timecop.return }
it { subject }
end