Stub instructeur devise methods in spec

This commit is contained in:
simon lehericey 2019-08-08 17:36:08 +02:00
parent c8a7bde5e0
commit 0d71a820a8
4 changed files with 26 additions and 18 deletions

View file

@ -4,6 +4,7 @@ describe 'instructeurs/dossiers/show.html.haml', type: :view do
before do
sign_in current_instructeur
allow(view).to receive(:current_instructeur).and_return(current_instructeur)
assign(:dossier, dossier)
end