[Rt-commit] rt branch, new-style-templates, updated. rt-3.8.8-216-gb35e3cb
Shawn Moore
sartak at bestpractical.com
Mon Jul 26 18:34:29 EDT 2010
The branch, new-style-templates has been updated
via b35e3cba7d6abd3c66b931bce64e30218c8c0bdf (commit)
from b83ccedd6b2e0481c45fa26a8fb8f759b0751fe9 (commit)
Summary of changes:
t/api/template-simple.t | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit b35e3cba7d6abd3c66b931bce64e30218c8c0bdf
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Jul 26 18:36:15 2010 -0400
Various additional simple template API tests
diff --git a/t/api/template-simple.t b/t/api/template-simple.t
index 401d421..e589565 100644
--- a/t/api/template-simple.t
+++ b/t/api/template-simple.t
@@ -1,7 +1,7 @@
use strict;
use warnings;
use RT;
-use RT::Test tests => 167;
+use RT::Test tests => 175;
my $queue = RT::Queue->new($RT::SystemUser);
$queue->Load("General");
@@ -117,6 +117,11 @@ SimpleTemplateTest(
);
SimpleTemplateTest(
+ Content => "\ntest { \$TicketDelete }",
+ Output => "test { \$TicketDelete }",
+);
+
+SimpleTemplateTest(
Content => "\ntest { \$Nonexistent }",
Output => "test { \$Nonexistent }",
);
@@ -165,6 +170,13 @@ $template->SetType('Simple');
$template->Parse;
is($template->MIMEObj->stringify_body, "test { 10 * 7 }", "Simple output");
+$template = RT::Template->new($RT::SystemUser);
+$template->Load($id);
+is($template->Name, "type chameleon");
+
+$template->SetType('Full');
+$template->Parse;
+is($template->MIMEObj->stringify_body, "test 70", "Full output");
my $counter = 0;
sub IndividualTemplateTest {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list