Cleanup application_controller and current_user
This commit is contained in:
parent
88842918f9
commit
adfa80142a
6 changed files with 26 additions and 39 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue