commencer: redirect to the procedure page after sign-in and sign-up
This commit is contained in:
parent
016e5f2e6f
commit
bb753ce23e
11 changed files with 62 additions and 27 deletions
|
@ -70,7 +70,7 @@ describe NewUser::CommencerController, type: :controller do
|
|||
|
||||
it 'set the path to return after sign-in to the dossier creation path' do
|
||||
subject
|
||||
expect(controller.stored_location_for(:user)).to eq(new_dossier_path(procedure_id: published_procedure.id))
|
||||
expect(controller.stored_location_for(:user)).to eq(commencer_path(path: published_procedure.path))
|
||||
end
|
||||
|
||||
it { expect(subject).to redirect_to(new_user_session_path) }
|
||||
|
@ -81,7 +81,7 @@ describe NewUser::CommencerController, type: :controller do
|
|||
|
||||
it 'set the path to return after sign-up to the dossier creation path' do
|
||||
subject
|
||||
expect(controller.stored_location_for(:user)).to eq(new_dossier_path(procedure_id: published_procedure.id))
|
||||
expect(controller.stored_location_for(:user)).to eq(commencer_path(path: published_procedure.path))
|
||||
end
|
||||
|
||||
it { expect(subject).to redirect_to(new_user_registration_path) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue