Attestation: fix mail attachment when the files are remotely stored

This commit is contained in:
Simon Lehericey 2017-06-19 13:47:00 +02:00
parent d8b9ba14c8
commit dd441ff0c7
2 changed files with 5 additions and 0 deletions

View file

@ -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