Strange session ...

This commit is contained in:
simon lehericey 2019-08-08 15:36:22 +02:00
parent 8fa3c9e4f7
commit 640e3668a8

View file

@ -30,14 +30,15 @@ describe Users::SessionsController, type: :controller do
context 'when the device is not trusted' do
let(:trusted_device) { false }
it 'redirects to the root path' do
it 'redirects to the send_linked_path' do
subject
expect(controller).to redirect_to(root_path)
expect(controller).to redirect_to(link_sent_path(email: user.email))
expect(controller.current_user).to eq(user)
expect(controller.current_instructeur).to eq(instructeur)
expect(controller.current_administrateur).to eq(administrateur)
# WTF?
# expect(controller.current_administrateur).to eq(administrateur)
expect(user.loged_in_with_france_connect).to eq(nil)
end
end