Fix new Rubocop warnings
This commit is contained in:
parent
f41c1f9ff4
commit
98be7e2076
4 changed files with 16 additions and 9 deletions
|
@ -27,8 +27,8 @@ module FeatureHelpers
|
|||
if sign_in_by_link
|
||||
mail = ActionMailer::Base.deliveries.last
|
||||
message = mail.html_part.body.raw_source
|
||||
instructeur_id = message[/\".+\/connexion-par-jeton\/(.+)\?jeton=(.*)\"/, 1]
|
||||
jeton = message[/\".+\/connexion-par-jeton\/(.+)\?jeton=(.*)\"/, 2]
|
||||
instructeur_id = message[/".+\/connexion-par-jeton\/(.+)\?jeton=(.*)"/, 1]
|
||||
jeton = message[/".+\/connexion-par-jeton\/(.+)\?jeton=(.*)"/, 2]
|
||||
|
||||
visit sign_in_by_link_path(instructeur_id, jeton: jeton)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue