feat(instructeur): nest all instruction routes under statut params for back purpose
This commit is contained in:
parent
b426e51d87
commit
c260c43dac
30 changed files with 195 additions and 141 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue