[Jifty-commit] r706 - in jifty/trunk: t/TestApp/t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Mar 19 18:30:44 EST 2006


Author: alexmv
Date: Sun Mar 19 18:30:44 2006
New Revision: 706

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/t/TestApp/t/02-dispatch.t
   jifty/trunk/t/TestApp/t/03-static.t

Log:
 r11677 at zoq-fot-pik:  chmrr | 2006-03-19 18:30:37 -0500
  * Add length test for static images
  * Bump test numbers


Modified: jifty/trunk/t/TestApp/t/02-dispatch.t
==============================================================================
--- jifty/trunk/t/TestApp/t/02-dispatch.t	(original)
+++ jifty/trunk/t/TestApp/t/02-dispatch.t	Sun Mar 19 18:30:44 2006
@@ -4,7 +4,7 @@
 
 BEGIN {chdir "t/TestApp"}
 use lib '../../lib';
-use Jifty::Test tests => 16;
+use Jifty::Test tests => 24;
 use Jifty::Test::WWW::Mechanize;
 
 my $server  = Jifty::Test->make_server;

Modified: jifty/trunk/t/TestApp/t/03-static.t
==============================================================================
--- jifty/trunk/t/TestApp/t/03-static.t	(original)
+++ jifty/trunk/t/TestApp/t/03-static.t	Sun Mar 19 18:30:44 2006
@@ -4,7 +4,7 @@
 
 BEGIN {chdir "t/TestApp"}
 use lib '../../lib';
-use Jifty::Test tests => 5;
+use Jifty::Test tests => 6;
 use Jifty::Test::WWW::Mechanize;
 
 my $server  = Jifty::Test->make_server;
@@ -20,5 +20,6 @@
     
     is($res->header('Content-Type'), 'image/jpeg', 'Content-Type is image/jpeg');
     like($res->status_line, qr/^200 Jifty OK$/, 'Status line is from Mason');
+    is(length $res->content, 39186, 'Content is right length');
 }
 


More information about the Jifty-commit mailing list