feat(champ): add updated_by column
This commit is contained in:
parent
9de97c8593
commit
68c15ba99f
10 changed files with 25 additions and 19 deletions
|
@ -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 n’est pas d’un type accepté']))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue