Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test for url in email

  • Loading branch information...
commit c7cd3083bf1254e210cf98c3a04ca8da2ec6d086 1 parent 001cba2
Zbigniew Lukasiak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  t/main.t
View
2  t/main.t
@@ -63,7 +63,7 @@ $mech->submit_form_ok( {
$mech->content_contains( 'Email sent', 'email sent' );
is( scalar( $email->header( 'To' ) ), 'test@example.com', 'Confirmation email recepient' );
-like( $email->body, qr/token=$pass_token/, 'Email contains link with the right token' );
+like( $email->body, qr/\btoken=$pass_token/, 'Email contains link with the right token' );
$mech->get_ok( '/forgotten_pass/reset?name=right_name&token=aaaa', 'reset token' );
$mech->content_contains( 'Token invalid', 'invalid reset token' );
Please sign in to comment.
Something went wrong with that request. Please try again.