PiecesJustificativesService: save_pj returns nil if no errors

This commit is contained in:
Simon Lehericey 2017-04-19 10:16:30 +02:00
parent c103e55579
commit e0828dda13
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ describe PiecesJustificativesService do
# we are messing around piece_justificative
# because directly doubling carrierwave params seems complicated
allow(PiecesJustificativesService).to receive(:save_pj).and_return('')
allow(PiecesJustificativesService).to receive(:save_pj).and_return(nil)
piece_justificative_double = double(type_de_piece_justificative: tpj_mandatory)
expect(dossier).to receive(:pieces_justificatives).and_return([piece_justificative_double])
end