[Rt-commit] r15972 - in rt/branches/3.999-DANGEROUS: lib/RT/Test t/web

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Sep 15 08:20:37 EDT 2008


Author: sunnavy
Date: Mon Sep 15 08:20:36 2008
New Revision: 15972

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/lib/RT/Test/Web.pm
   rt/branches/3.999-DANGEROUS/t/web/basic.t

Log:
 r16707 at sunnavys-mb:  sunnavy | 2008-09-15 20:14:04 +0800
 login by username instead of email now


Modified: rt/branches/3.999-DANGEROUS/lib/RT/Test/Web.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Test/Web.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Test/Web.pm	Mon Sep 15 08:20:36 2008
@@ -81,7 +81,7 @@
 
     my $moniker = $self->moniker_for('RT::Action::Login');
 
-    $self->fill_in_action( $moniker, email => $user, password => $pass );
+    $self->fill_in_action( $moniker, username => $user, password => $pass );
     $self->submit();
     unless ( $self->status == 200 ) {
         Test::More::diag( "error: status is " . $self->status );

Modified: rt/branches/3.999-DANGEROUS/t/web/basic.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/web/basic.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/web/basic.t	Mon Sep 15 08:20:36 2008
@@ -31,7 +31,7 @@
 ok($moniker, "Found the moniker $moniker");
 
     ok( $agent->fill_in_action($moniker
-            , email => $username, password => $password), "Filled in the login box");
+            , username => $username, password => $password), "Filled in the login box");
 $agent->submit();
 is($agent->{'status'}, 200, "Fetched the page ok");
 ok( $agent->content =~ /Logout/i, "Found a logout link");


More information about the Rt-commit mailing list