[Rt-commit] rt branch, 4.0/template-compile-error, updated. rt-4.0.18rc1-11-g8b4566d

Alex Vandiver alexmv at bestpractical.com
Wed Oct 9 16:40:09 EDT 2013


The branch, 4.0/template-compile-error has been updated
       via  8b4566d17e99d83d956657d39124672f4be31c03 (commit)
      from  e4a1a4cb28b42238b9e395492a9cdaebfb3f1d27 (commit)

Summary of changes:
 t/api/template-parsing.t | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

- Log -----------------------------------------------------------------
commit 8b4566d17e99d83d956657d39124672f4be31c03
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Oct 9 16:39:59 2013 -0400

    Account for new compilation warning

diff --git a/t/api/template-parsing.t b/t/api/template-parsing.t
index 455b84d..5701772 100644
--- a/t/api/template-parsing.t
+++ b/t/api/template-parsing.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 use RT;
-use RT::Test tests => 266;
+use RT::Test tests => undef;
 use Test::Warn;
 
 my $queue = RT::Queue->new(RT->SystemUser);
@@ -158,12 +158,14 @@ warning_like {
     );
 } qr/Template parsing error: syntax error/;
 
-TemplateTest(
-    Content      => "\ntest { \$rtname ",
-    SyntaxError  => 1,
-    PerlOutput   => undef,
-    SimpleOutput => undef,
-);
+warning_like {
+    TemplateTest(
+        Content      => "\ntest { \$rtname ",
+        SyntaxError  => 1,
+        PerlOutput   => undef,
+        SimpleOutput => undef,
+    );
+} qr/Template parsing error in Test-\d+ \(#\d+\): End of data inside program text/;
 
 is($ticket->Status, 'new', "test setup");
 SimpleTemplateTest(
@@ -231,6 +233,8 @@ note "test arguments passing";
 }
 
 undef $ticket;
+done_testing;
+
 
 my $counter = 0;
 sub IndividualTemplateTest {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list