Fix demo controller connexion spec Gestionnaire

This commit is contained in:
Xavier J 2017-01-03 11:35:14 +01:00
parent f9759d9368
commit f7c11218db

View file

@ -20,7 +20,7 @@ describe Gestionnaires::SessionsController, type: :controller do
it { expect(subject.status).to eq 200 }
it 'Gestionnaire demo is initiated' do
expect(Gestionnaire).to receive(:new).with(email: 'gestionnaire@apientreprise.fr', password: 'password').and_return(Gestionnaire)
expect(User).to receive(:new).with(email: 'gestionnaire@apientreprise.fr', password: 'password').and_return(Gestionnaire)
subject
end
end