Spec: sign_in with instructeur.user
This commit is contained in:
parent
65a53909e1
commit
ad31822a68
14 changed files with 33 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue