After create new procedure, admin is redirect to type de champ form
This commit is contained in:
parent
90c7e85980
commit
f92f0f46cc
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class Admin::ProceduresController < AdminController
|
|||
end
|
||||
|
||||
flash.notice = 'Procédure enregistrée'
|
||||
redirect_to admin_procedures_path
|
||||
redirect_to admin_procedure_types_de_champ_path(procedure_id: @procedure.id)
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
|
@ -82,7 +82,7 @@ describe Admin::ProceduresController, type: :controller do
|
|||
|
||||
end
|
||||
|
||||
it { expect(subject).to redirect_to(admin_procedures_path) }
|
||||
it { expect(subject).to redirect_to(admin_procedure_types_de_champ_path(procedure_id: Procedure.last.id)) }
|
||||
|
||||
it { expect(flash[:notice]).to be_present }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue