Skip to content
Browse files

test for url in email

  • Loading branch information...
1 parent 001cba2 commit c7cd3083bf1254e210cf98c3a04ca8da2ec6d086 Zbigniew Lukasiak committed Feb 7, 2012
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' );

0 comments on commit c7cd308

Please sign in to comment.
Something went wrong with that request. Please try again.