refactor(exports): regenerating exports redirect (back) to exports page

Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
This commit is contained in:
Colin Darie 2023-09-13 13:06:07 +02:00
parent ca0b5c9cb9
commit edb030bb4c
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
2 changed files with 4 additions and 4 deletions

View file

@ -194,7 +194,7 @@ module Instructeurs
end
end
format.html do
redirect_to instructeur_procedure_url(procedure), notice: export.flash_message
redirect_to exports_instructeur_procedure_path(procedure), notice: export.flash_message
end
end
end

View file

@ -588,7 +588,7 @@ describe Instructeurs::ProceduresController, type: :controller do
context 'when the export does not exist' do
it 'displays an notice' do
is_expected.to redirect_to(instructeur_procedure_url(procedure))
is_expected.to redirect_to(exports_instructeur_procedure_url(procedure))
expect(flash.notice).to be_present
end
@ -601,7 +601,7 @@ describe Instructeurs::ProceduresController, type: :controller do
end
it 'displays an notice' do
is_expected.to redirect_to(instructeur_procedure_url(procedure))
is_expected.to redirect_to(exports_instructeur_procedure_url(procedure))
expect(flash.notice).to be_present
end
end
@ -627,7 +627,7 @@ describe Instructeurs::ProceduresController, type: :controller do
end
it 'displays an notice' do
is_expected.to redirect_to(instructeur_procedure_url(procedure))
is_expected.to redirect_to(exports_instructeur_procedure_url(procedure))
expect(flash.notice).to be_present
end
end