[Rt-commit] r19321 - in rt/3.999/branches/config-in-db: t/api

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Apr 21 23:45:48 EDT 2009


Author: sunnavy
Date: Tue Apr 21 23:45:47 2009
New Revision: 19321

Modified:
   rt/3.999/branches/config-in-db/   (props changed)
   rt/3.999/branches/config-in-db/t/api/date.t

Log:
 r20873 at sunnavys-mb (orig r19320):  sunnavy | 2009-04-22 10:28:01 +0800
 update date test because DateTimeFormat now is just the name instead of format itself


Modified: rt/3.999/branches/config-in-db/t/api/date.t
==============================================================================
--- rt/3.999/branches/config-in-db/t/api/date.t	(original)
+++ rt/3.999/branches/config-in-db/t/api/date.t	Tue Apr 21 23:45:47 2009
@@ -4,7 +4,7 @@
 use Test::MockTime qw(set_fixed_time restore_time);
 use RT::Test;
 
-use Test::More tests => 94;
+use Test::More tests => 92;
 
 use RT::Model::User;
 use Test::Warn;
@@ -256,15 +256,10 @@
     my $date = RT::DateTime->from_epoch(epoch => 0);
     is($date, "unset", "epoch 0 returns 'unset'");
 
-    RT->config->set( date_time_format => '%a %b %d %H:%M:%S %Y');
     $date = RT::DateTime->from_epoch(epoch => 1);
-    is($date, 'Thu Jan 01 00:00:01 1970', "correct string");
 
-    RT->config->set( date_time_format => '%a, %d %b %Y %H:%M:%S %z' );
+    RT->config->set( date_time_format => 'rfc2822' );
     is($date, 'Thu, 01 Jan 1970 00:00:01 +0000', "correct string");
-
-    RT->config->set( date_time_format => '%a, %d %b %Y %H:%M %z' );
-    is($date, 'Thu, 01 Jan 1970 00:00 +0000', "correct string");
 }
 
 { # RT::DateTime::Duration


More information about the Rt-commit mailing list