amelioration(application_controller.roles): intègre aussi le role d'expert aux logs
This commit is contained in:
parent
6def2609f1
commit
1307e7262f
2 changed files with 2 additions and 0 deletions
|
@ -200,6 +200,7 @@ class ApplicationController < ActionController::Base
|
|||
roles = [
|
||||
current_user,
|
||||
current_instructeur,
|
||||
current_expert,
|
||||
current_administrateur,
|
||||
current_gestionnaire,
|
||||
current_super_admin
|
||||
|
|
|
@ -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 qu’expert")
|
||||
click_on 'Passer en usager'
|
||||
expect(page).to have_current_path(dossiers_path)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue