Gestionnaire: move sign_up_avis_path to sign_up_gestionnaire_avis_path

This commit is contained in:
simon lehericey 2018-02-21 13:42:12 +01:00
parent b59f9f6117
commit c1bbe72dbd
3 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ module NewGestionnaire
redirect_to url_for(avis_index_path)
else
flash[:alert] = gestionnaire.errors.full_messages
redirect_to url_for(sign_up_avis_path(params[:id], email))
redirect_to url_for(sign_up_gestionnaire_avis_path(params[:id], email))
end
end

View file

@ -250,7 +250,7 @@ describe NewGestionnaire::AvisController, type: :controller do
let(:password) { '' }
it { expect(created_gestionnaire).to be_nil }
it { is_expected.to redirect_to sign_up_avis_path(avis_id, invited_email) }
it { is_expected.to redirect_to sign_up_gestionnaire_avis_path(avis_id, invited_email) }
it { expect(flash.alert).to eq(['Password : Le mot de passe est vide']) }
end
end

View file

@ -71,7 +71,7 @@ feature 'The gestionnaire part' do
log_out
avis = dossier.avis.first
test_mail(expert_email, sign_up_avis_path(avis, expert_email))
test_mail(expert_email, sign_up_gestionnaire_avis_path(avis, expert_email))
avis_sign_up(avis, expert_email, 'a good password')
@ -169,7 +169,7 @@ feature 'The gestionnaire part' do
end
def avis_sign_up(avis, email, password)
visit sign_up_avis_path(avis, email)
visit sign_up_gestionnaire_avis_path(avis, email)
fill_in 'gestionnaire_password', with: 'a good password'
click_on 'Créer un compte'
expect(page).to have_current_path(avis_index_path)