Spec: sign_in with instructeur.user
This commit is contained in:
parent
65a53909e1
commit
ad31822a68
14 changed files with 33 additions and 28 deletions
|
@ -81,7 +81,7 @@ feature 'Getting help:' do
|
|||
let(:instructeur) { create(:instructeur) }
|
||||
|
||||
before do
|
||||
login_as instructeur, scope: :instructeur
|
||||
login_as instructeur.user, scope: :user
|
||||
end
|
||||
|
||||
scenario 'a Help menu is visible on signed-in pages' do
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue