import rt 3.8.11
[freeside.git] / rt / lib / t / regression / 00-mason-syntax.t
index 96674ca..ce692a3 100644 (file)
@@ -12,10 +12,6 @@ find( {
     no_chdir => 1,
     wanted   => sub {
         return if /\.(?:jpe?g|png|gif|rej|\~)$/i;
-       if (m!/\.svn$!) {
-           $File::Find::prune = 1;
-           return;
-       }
         return unless -f $_;
         diag "testing $_" if $ENV{'TEST_VERBOSE'};
         eval { compile_file($_) } and return;
@@ -25,6 +21,7 @@ find( {
 }, 'html');
 ok($ok, "mason syntax is ok");
 
+use HTML::Mason;
 use HTML::Mason::Compiler;
 use HTML::Mason::Compiler::ToObject;
 
@@ -36,7 +33,11 @@ sub compile_file {
     close $fh or die "couldn't close '$file': $!";
 
     my $compiler = new HTML::Mason::Compiler::ToObject;
-    $compiler->compile( comp_source => $text, name => 'my' );
+    $compiler->compile(
+        comp_source => $text,
+        name => 'my',
+        $HTML::Mason::VERSION >= 1.36? (comp_path => 'my'): (),
+    );
     return 1;
 }