[Rt-commit] r15944 - in rt/branches/3.999-DANGEROUS: t

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Sep 12 09:50:58 EDT 2008


Author: sunnavy
Date: Fri Sep 12 09:50:57 2008
New Revision: 15944

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/t/plugin.t

Log:
 r16669 at sunnavys-mb:  sunnavy | 2008-09-12 21:50:35 +0800
 refactor a bit


Modified: rt/branches/3.999-DANGEROUS/t/plugin.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/plugin.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/plugin.t	Fri Sep 12 09:50:57 2008
@@ -6,13 +6,15 @@
 # your database in etc/config.yml.
 
 BEGIN {
+    use Test::More;
     unless (@ARGV) {
-        print "1..1\nok 1\nDone\n";
-        exit 0;
+        plan skip_all => 'this will ruin your database in etc/config.yml';
+    }
+    else {
+        plan tests => 5;
     }
 }
 
-use Test::More tests => 5;
 BEGIN {
     use RT;
     use lib $RT::LocalLibPath; # plugin need this path in @INC


More information about the Rt-commit mailing list