fix(profile): senticify profiles list
This commit is contained in:
parent
c541ed7c93
commit
f25b1361ee
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ class Users::SessionsController < Devise::SessionsController
|
||||||
|
|
||||||
super
|
super
|
||||||
if current_account.count > 1
|
if current_account.count > 1
|
||||||
flash[:notice] = t("devise.sessions.signed_in_multiple_profile", roles: current_account.keys.map { |role| t("layouts.#{role}") }.join(', '))
|
flash[:notice] = t("devise.sessions.signed_in_multiple_profile", roles: current_account.keys.map { |role| t("layouts.#{role}") }.to_sentence)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ describe 'Inviting an expert:', js: true do
|
||||||
visit new_user_session_path
|
visit new_user_session_path
|
||||||
sign_in_with avis.expert.email, password
|
sign_in_with avis.expert.email, password
|
||||||
|
|
||||||
expect(page).to have_content('Vous pouvez à tout moment alterner entre vos différents profils : expert, usager.')
|
expect(page).to have_content('Vous pouvez à tout moment alterner entre vos différents profils : expert et usager.')
|
||||||
expect(page).to have_current_path(expert_all_avis_path)
|
expect(page).to have_current_path(expert_all_avis_path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe 'Signin in:' do
|
||||||
|
|
||||||
sign_in_with user.email, password
|
sign_in_with user.email, password
|
||||||
expect(page).to have_current_path admin_procedures_path
|
expect(page).to have_current_path admin_procedures_path
|
||||||
expect(page).to have_content('Vous êtes connecté(e) ! Vous pouvez à tout moment alterner entre vos différents profils : administrateur, instructeur, usager.')
|
expect(page).to have_content('Vous êtes connecté(e) ! Vous pouvez à tout moment alterner entre vos différents profils : administrateur, instructeur et usager.')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue