Spec: sign_in with instructeur.user

This commit is contained in:
simon lehericey 2019-08-07 11:15:16 +02:00
parent 65a53909e1
commit ad31822a68
14 changed files with 33 additions and 28 deletions

View file

@ -3,7 +3,7 @@ describe 'instructeurs/dossiers/show.html.haml', type: :view do
let(:dossier) { create(:dossier, :en_construction) }
before do
sign_in current_instructeur
sign_in(current_instructeur.user)
allow(view).to receive(:current_instructeur).and_return(current_instructeur)
assign(:dossier, dossier)
end