Fix demo controller connexion spec
This commit is contained in:
parent
2750319f77
commit
f9759d9368
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ describe Administrateurs::SessionsController, type: :controller do
|
|||
it { expect(subject.status).to eq 200 }
|
||||
|
||||
it 'Administrateur demo is initiated' do
|
||||
expect(Administrateur).to receive(:new).with(email: 'admin@tps.fr', password: 'password').and_return(Administrateur)
|
||||
expect(User).to receive(:new).with(email: 'admin@tps.fr', password: 'password').and_return(Administrateur)
|
||||
subject
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue