fix(dossier): nullify close to expiration notice timestamps when changing state
This commit is contained in:
parent
18808358f9
commit
da47f491b3
4 changed files with 94 additions and 30 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue