Gestionnaire: move procedure_path gestionnaire_procedure_path

This commit is contained in:
simon lehericey 2018-02-21 14:50:52 +01:00
parent 0dc101e375
commit 4a70087f7a
4 changed files with 16 additions and 16 deletions

View file

@ -13,7 +13,7 @@ feature 'The gestionnaire part' do
expect(page).to have_current_path(procedures_path)
click_on procedure.libelle
expect(page).to have_current_path(procedure_path(procedure))
expect(page).to have_current_path(gestionnaire_procedure_path(procedure))
click_on dossier.user.email
expect(page).to have_current_path(gestionnaire_dossier_path(procedure, dossier))
@ -40,16 +40,16 @@ feature 'The gestionnaire part' do
dossier_present?(dossier.id, 'en construction')
click_on 'Suivre le dossier'
expect(page).to have_current_path(procedure_path(procedure))
expect(page).to have_current_path(gestionnaire_procedure_path(procedure))
test_statut_bar(suivi: 1, tous_les_dossiers: 1)
expect(page).to have_text('Aucun dossier')
click_on 'suivi'
expect(page).to have_current_path(procedure_path(procedure, statut: 'suivis'))
expect(page).to have_current_path(gestionnaire_procedure_path(procedure, statut: 'suivis'))
dossier_present?(dossier.id, 'en construction')
click_on 'Ne plus suivre'
expect(page).to have_current_path(procedure_path(procedure, statut: 'suivis'))
expect(page).to have_current_path(gestionnaire_procedure_path(procedure, statut: 'suivis'))
test_statut_bar(a_suivre: 1, tous_les_dossiers: 1)
expect(page).to have_text('Aucun dossier')
end