Fix demo controller connexion spec Gestionnaire
This commit is contained in:
parent
f9759d9368
commit
f7c11218db
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ describe Gestionnaires::SessionsController, type: :controller do
|
||||||
it { expect(subject.status).to eq 200 }
|
it { expect(subject.status).to eq 200 }
|
||||||
|
|
||||||
it 'Gestionnaire demo is initiated' do
|
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
|
subject
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue