feat(instructeur): nest all instruction routes under statut params for back purpose

This commit is contained in:
mfo 2024-11-20 11:34:40 +01:00
parent b426e51d87
commit c260c43dac
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
30 changed files with 195 additions and 141 deletions

View file

@ -10,7 +10,8 @@ describe Instructeurs::BatchOperationsController, type: :controller do
batch_operation: {
operation: BatchOperation.operations.fetch(:archiver),
dossier_ids: [dossier.id]
}
},
statut: 'a-suivre'
}
end
@ -20,7 +21,10 @@ describe Instructeurs::BatchOperationsController, type: :controller do
context 'ACL' do
let(:params) do
{ procedure_id: create(:procedure).id }
{
procedure_id: create(:procedure).id,
statut: 'a-suivre'
}
end
it 'fails when procedure does not belongs to instructeur' do