[Rt-commit] r14693 - in rtfm/trunk: .
falcone at bestpractical.com
falcone at bestpractical.com
Thu Jul 31 11:17:46 EDT 2008
Author: falcone
Date: Thu Jul 31 11:17:45 2008
New Revision: 14693
Modified:
rtfm/trunk/ (props changed)
rtfm/trunk/t/lib/RT/FM/Test.pm
Log:
r36535 at ketch: falcone | 2008-07-31 11:05:20 -0400
* lie to RT about where to find RTFM's templates so we can run the
tests without running make install
Modified: rtfm/trunk/t/lib/RT/FM/Test.pm
==============================================================================
--- rtfm/trunk/t/lib/RT/FM/Test.pm (original)
+++ rtfm/trunk/t/lib/RT/FM/Test.pm Thu Jul 31 11:17:45 2008
@@ -3,6 +3,7 @@
package RT::FM::Test;
use base qw(Test::More);
+use Cwd;
eval 'use RT::Test; 1'
or Test::More::plan skip_all => 'requires 3.8 to run tests. You may need to set PERL5LIB=/path/to/rt/lib';
@@ -35,6 +36,13 @@
RT->Config->Set('Plugins',qw(RT::FM));
+ # we need to lie to RT and have it find RTFM's mason templates
+ # in the local directory
+ { no warnings 'redefine';
+ my $cwd = getcwd;
+ *RT::Plugin::_BasePath = sub { return $cwd };
+ }
+
}
1;
More information about the Rt-commit
mailing list