Update instructeur factory

This commit is contained in:
simon lehericey 2019-08-08 16:55:51 +02:00
parent 47b7dc368b
commit 65a53909e1
8 changed files with 33 additions and 13 deletions

View file

@ -13,9 +13,7 @@ feature 'The instructeur part' do
Flipflop::FeatureSet.current.test!.switch!(:enable_email_login_token, true)
end
context 'when the instructeur is also a user' do
let!(:user) { create(:user, email: instructeur.email, password: password) }
context 'the instructeur is also a user' do
scenario 'a instructeur can fill a dossier' do
visit commencer_path(path: procedure.path)
click_on 'Jai déjà un compte'