After create new procedure, admin is redirect to type de champ form

This commit is contained in:
Xavier J 2015-11-20 10:54:07 +01:00
parent 90c7e85980
commit f92f0f46cc
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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