refactor(exports): regenerating exports redirect (back) to exports page
Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
This commit is contained in:
parent
ca0b5c9cb9
commit
edb030bb4c
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue