invite: mutualize feature helper for signing in

This commit is contained in:
Pierre de La Morinerie 2018-11-06 17:06:45 +01:00
parent d4b2b04875
commit 0fb9c123c9
2 changed files with 8 additions and 8 deletions

View file

@ -14,6 +14,12 @@ module FeatureHelpers
dossier = FactoryBot.create(:dossier)
dossier
end
def sign_in_with(email, password)
fill_in :user_email, with: email
fill_in :user_password, with: password
click_on 'Se connecter'
end
end
RSpec.configure do |config|