[Rt-commit] r8463 - rtir/branches/2.3-EXPERIMENTAL/t/constituency

ruz at bestpractical.com ruz at bestpractical.com
Wed Aug 8 22:07:17 EDT 2007


Author: ruz
Date: Wed Aug  8 22:07:16 2007
New Revision: 8463

Modified:
   rtir/branches/2.3-EXPERIMENTAL/t/constituency/propagation-no.t

Log:
* skip everything if we have different propagation algorithm

Modified: rtir/branches/2.3-EXPERIMENTAL/t/constituency/propagation-no.t
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/t/constituency/propagation-no.t	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/t/constituency/propagation-no.t	Wed Aug  8 22:07:16 2007
@@ -2,17 +2,17 @@
 
 use strict;
 use warnings;
-use Test::More tests => 180;
-no warnings 'once';
+use Test::More;
 
 require "t/rtir-test.pl";
 
-# Test must be run wtih RT_SiteConfig:
-# Set(@MailPlugins, 'Auth::MailFrom');
-
-use_ok('RT');
-RT::LoadConfig();
-RT::Init();
+# XXX: we should use new RT::Test features and start server with
+# option we want.
+if ( RT->Config->Get('_RTIR_Constituency_Propagation') eq 'no' ) {
+    plan tests => 180;
+} else {
+    plan skip_all => 'constituency propagation algorithm is not "no"';
+}
 
 use_ok('RT::IR');
 


More information about the Rt-commit mailing list