Attestation: fix mail attachment when the files are remotely stored
This commit is contained in:
parent
d8b9ba14c8
commit
dd441ff0c7
2 changed files with 5 additions and 0 deletions
|
@ -340,6 +340,7 @@ describe Backoffice::DossiersController, type: :controller do
|
|||
allow(attestation).to receive(:pdf).and_return(double(read: 'pdf', size: 2.megabytes))
|
||||
allow(attestation).to receive(:emailable?).and_return(emailable)
|
||||
|
||||
expect_any_instance_of(Dossier).to receive(:reload)
|
||||
allow_any_instance_of(Dossier).to receive(:build_attestation).and_return(attestation)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue