[Rt-commit] rt branch, new-style-templates, updated. rt-3.8.8-193-g1044991
Shawn Moore
sartak at bestpractical.com
Wed Jul 21 00:36:40 EDT 2010
The branch, new-style-templates has been updated
via 104499173e6539eef5e0730b57017bb70e4b8c17 (commit)
from 1b2ce0753ed82a15ee0593d7a5ca3ec325f9826a (commit)
Summary of changes:
t/api/template-simple.t | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 104499173e6539eef5e0730b57017bb70e4b8c17
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Jul 21 00:36:38 2010 -0400
Test to show that $Ticket->OwnerObj->Name doesn't work yet for Simple templates
Because we only match (\w+)->(\w+). Thoughts? Should we allow (\w+)(->\w+)*?
diff --git a/t/api/template-simple.t b/t/api/template-simple.t
index 123fb05..49c4fa4 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 => 83;
+use RT::Test tests => 95;
my $ticket = RT::Ticket->new($RT::SystemUser);
my ($id, $msg) = $ticket->Create(
@@ -54,6 +54,13 @@ TemplateTest(
SimpleOutput => "test { \$Nonexistent->Nonexistent }",
);
+# Simple templates only let you go one level down for now..
+TemplateTest(
+ Content => "\ntest { \$Ticket->OwnerObj->Name }",
+ FullOutput => "test Nobody",
+ SimpleOutput => "test { \$Ticket->OwnerObj->Name }",
+);
+
my $counter = 0;
sub IndividualTemplateTest {
local $Test::Builder::Level = $Test::Builder::Level + 1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list