[Rt-commit] r14654 - in rtfm/trunk: .

falcone at bestpractical.com falcone at bestpractical.com
Wed Jul 30 16:04:00 EDT 2008


Author: falcone
Date: Wed Jul 30 16:03:56 2008
New Revision: 14654

Modified:
   rtfm/trunk/   (props changed)
   rtfm/trunk/t/05cfsearch.pl

Log:
 r36386 at ketch:  falcone | 2008-07-30 09:44:44 -0400
 * convert to use RT::Test


Modified: rtfm/trunk/t/05cfsearch.pl
==============================================================================
--- rtfm/trunk/t/05cfsearch.pl	(original)
+++ rtfm/trunk/t/05cfsearch.pl	Wed Jul 30 16:03:56 2008
@@ -3,12 +3,18 @@
 use strict;
 use warnings;
 
-use Test::More tests => 12;
-BEGIN { require 't/utils.pl' }
+use Test::More;
+eval 'use RT::Test; 1'
+    or plan skip_all => 'requires 3.8 to run tests.';
+
+plan tests => 13;
+
+my ($ret, $msg) = $RT::Handle->InsertSchema(undef,'etc/');
+ok($ret,"Created Schema: ".$msg||'');
+($ret, $msg) = $RT::Handle->InsertACL(undef,'etc/');
+ok($ret,"Created ACL: ".$msg||'');
 
-use_ok 'RT';
-RT::LoadConfig();
-RT::Init();
+RT->Config->Set('Plugins',qw(RT::FM));
 
 my $suffix = '-'. $$;
 


More information about the Rt-commit mailing list