feat(champ): add updated_by column

This commit is contained in:
Paul Chavard 2024-05-13 16:53:33 +02:00
parent 9de97c8593
commit 68c15ba99f
No known key found for this signature in database
10 changed files with 25 additions and 19 deletions

View file

@ -10,7 +10,6 @@ describe Champs::PieceJustificativeController, type: :controller do
subject do
put :update, params: {
position: '1',
dossier_id: champ.dossier_id,
stable_id: champ.stable_id,
blob_signed_id: file
@ -49,7 +48,7 @@ describe Champs::PieceJustificativeController, type: :controller do
# See https://github.com/betagouv/demarches-simplifiees.fr/issues/4926
before do
champ
expect_any_instance_of(Champs::PieceJustificativeChamp).to receive(:save).twice.and_return(false)
expect_any_instance_of(Champs::PieceJustificativeChamp).to receive(:save).and_return(false)
expect_any_instance_of(Champs::PieceJustificativeChamp).to receive(:errors)
.and_return(double(full_messages: ['La pièce justificative nest pas dun type accepté']))
end