[Bps-public-commit] r18317 - in Net-Google-Code/branches/write: .

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Feb 10 07:45:37 EST 2009


Author: sunnavy
Date: Tue Feb 10 07:45:37 2009
New Revision: 18317

Modified:
   Net-Google-Code/branches/write/   (props changed)
   Net-Google-Code/branches/write/lib/Net/Google/Code/Role/Authentication.pm

Log:
 r19746 at sunnavys-mb:  sunnavy | 2009-02-10 20:10:03 +0800
 a bit loose regex, since google is not always consistent in cases


Modified: Net-Google-Code/branches/write/lib/Net/Google/Code/Role/Authentication.pm
==============================================================================
--- Net-Google-Code/branches/write/lib/Net/Google/Code/Role/Authentication.pm	(original)
+++ Net-Google-Code/branches/write/lib/Net/Google/Code/Role/Authentication.pm	Tue Feb 10 07:45:37 2009
@@ -38,11 +38,11 @@
         },
     );
 
-    die 'signin failed to google code'
+    die 'sign in failed to google code'
       unless ( $already_in_google && $self->mech->uri =~ /CheckCookie/ )
       || !$already_in_google && $self->html_contains(
         look_down => [ id => 'gaia' ],
-        as_text   => qr/Sign out/,
+        as_text   => qr/Sign out/i,
       );
 
     return 1;
@@ -56,7 +56,7 @@
     die 'sign out failed to google code'
       unless $self->html_contains(
         look_down => [ id => 'gaia' ],
-        as_text   => qr/Sign in/,
+        as_text   => qr/Sign in/i,
       );
 
     return 1;



More information about the Bps-public-commit mailing list