[Jifty-commit] r4091 - in apps/CASPlus: . trunk/t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Sep 11 18:49:09 EDT 2007


Author: sterling
Date: Tue Sep 11 18:49:05 2007
New Revision: 4091

Modified:
   apps/CASPlus/   (props changed)
   apps/CASPlus/trunk/   (props changed)
   apps/CASPlus/trunk/t/50-root-redirect.t

Log:
 r11988 at dynpc145:  andrew | 2007-09-11 17:45:13 -0500
  r11978 at dynpc145:  andrew | 2007-09-11 17:44:22 -0500
   r11964 at dynpc145 (orig r1984):  andrew | 2007-09-11 17:31:35 -0500
    r11958 at dynpc145:  andrew | 2007-09-11 17:06:46 -0500
    Fixing the test to deal with the new /admin/setup redirect on new installs.
   
  
 


Modified: apps/CASPlus/trunk/t/50-root-redirect.t
==============================================================================
--- apps/CASPlus/trunk/t/50-root-redirect.t	(original)
+++ apps/CASPlus/trunk/t/50-root-redirect.t	Tue Sep 11 18:49:05 2007
@@ -2,9 +2,18 @@
 use warnings;
 use strict;
 
-use Jifty::Test tests => 4;
+use Jifty::Test tests => 6;
 use Jifty::Test::WWW::Mechanize;
 
+# Make sure to create a user before we get started or redirect will go to
+# /admin/setup instead of /login
+my $current_user = CASPlus::CurrentUser->superuser;
+ok($current_user, 'got a superuser');
+
+my $user = CASPlus::Model::User->new( current_user => $current_user );
+$user->create( username => 'superuser' );
+ok($user->id, 'created a first user');
+
 my $server = Jifty::Test->make_server;
 isa_ok($server, 'Jifty::Server');
 my $cas_url = $server->started_ok;


More information about the Jifty-commit mailing list