specs: re-order method in feature helpers

This commit is contained in:
Pierre de La Morinerie 2019-10-21 11:17:23 +02:00
parent 0807fed258
commit a56dc0f653

View file

@ -63,6 +63,13 @@ module FeatureHelpers
expect(page).to have_content(procedure.service.email)
end
def click_reset_password_link_for(email)
reset_password_email = open_email(email)
token_params = reset_password_email.body.match(/reset_password_token=[^"]+/)
visit "/users/password/edit?#{token_params}"
end
def blur
page.find('body').click
end
@ -78,13 +85,6 @@ module FeatureHelpers
value
end
end
def click_reset_password_link_for(email)
reset_password_email = open_email(email)
token_params = reset_password_email.body.match(/reset_password_token=[^"]+/)
visit "/users/password/edit?#{token_params}"
end
end
RSpec.configure do |config|