Cleanup application_controller and current_user

This commit is contained in:
Paul Chavard 2019-09-17 11:01:20 +02:00
parent 88842918f9
commit adfa80142a
6 changed files with 26 additions and 39 deletions

View file

@ -21,7 +21,7 @@ describe ApplicationController, type: :controller do
let(:payload) { {} }
before do
expect(@controller).to receive(:current_user).and_return(current_user)
allow(@controller).to receive(:current_user).and_return(current_user)
expect(@controller).to receive(:current_instructeur).and_return(current_instructeur)
expect(@controller).to receive(:current_administrateur).and_return(current_administrateur)
expect(@controller).to receive(:current_administration).and_return(current_administration)