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

@ -12,7 +12,7 @@ feature "procedure filters" do
before do
champ.update(value: "Mon champ rempli")
champ_2.update(value: "Mon autre champ rempli différemment")
login_as instructeur, scope: :instructeur
login_as(instructeur.user, scope: :user)
visit instructeur_procedure_path(procedure)
end