[Rt-commit] r14661 - in rtfm/trunk: .
falcone at bestpractical.com
falcone at bestpractical.com
Wed Jul 30 16:05:33 EDT 2008
Author: falcone
Date: Wed Jul 30 16:05:28 2008
New Revision: 14661
Modified:
rtfm/trunk/ (props changed)
rtfm/trunk/t/2basic_api.t
Log:
r36393 at ketch: falcone | 2008-07-30 10:11:39 -0400
* convert to RT::Test
Modified: rtfm/trunk/t/2basic_api.t
==============================================================================
--- rtfm/trunk/t/2basic_api.t (original)
+++ rtfm/trunk/t/2basic_api.t Wed Jul 30 16:05:28 2008
@@ -3,12 +3,19 @@
use warnings;
use strict;
-use Test::More tests => 41;
-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 => 42;
+
+{
+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));
use_ok 'RT::FM::System';
my $sys = new RT::FM::System;
More information about the Rt-commit
mailing list