amelioration(application_controller.roles): intègre aussi le role d'expert aux logs

This commit is contained in:
Martin 2023-12-14 10:11:54 +01:00
parent 6def2609f1
commit 1307e7262f
2 changed files with 2 additions and 0 deletions

View file

@ -200,6 +200,7 @@ class ApplicationController < ActionController::Base
roles = [
current_user,
current_instructeur,
current_expert,
current_administrateur,
current_gestionnaire,
current_super_admin

View file

@ -52,6 +52,7 @@ describe 'Inviting an expert:' do
expect(page).to have_current_path(new_user_session_path)
login_as avis.expert.user, scope: :user
sign_in_with(avis.expert.email, 'This is a very complicated password !')
expect(page).to have_content("connecté en tant quexpert")
click_on 'Passer en usager'
expect(page).to have_current_path(dossiers_path)
end