invite: mutualize feature helper for signing in
This commit is contained in:
parent
d4b2b04875
commit
0fb9c123c9
2 changed files with 8 additions and 8 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue