From f9759d9368a52c7328df88482b3769452d3512c9 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Tue, 3 Jan 2017 11:34:29 +0100 Subject: [PATCH] Fix demo controller connexion spec --- spec/controllers/administrateur/sessions_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/administrateur/sessions_controller_spec.rb b/spec/controllers/administrateur/sessions_controller_spec.rb index a4717fca7..2499e2e0e 100644 --- a/spec/controllers/administrateur/sessions_controller_spec.rb +++ b/spec/controllers/administrateur/sessions_controller_spec.rb @@ -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