[Rt-commit] rt branch, new-style-templates, updated. rt-3.8.8-181-g35fddfc

Shawn Moore sartak at bestpractical.com
Mon Jul 19 19:08:48 EDT 2010


The branch, new-style-templates has been updated
       via  35fddfcc9196871c2523b04d33101d0198a0c7c7 (commit)
      from  34719789f315646ce8ad3c1adb26c0a8ec13d80b (commit)

Summary of changes:
 t/api/template-simple.t |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 35fddfcc9196871c2523b04d33101d0198a0c7c7
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Jul 19 19:10:25 2010 -0400

    Pass a transaction to the template parsing just to have one

diff --git a/t/api/template-simple.t b/t/api/template-simple.t
index f96f3f9..65f1ba9 100644
--- a/t/api/template-simple.t
+++ b/t/api/template-simple.t
@@ -69,7 +69,10 @@ sub TemplateTest {
     is($t->Content, $args{Content}, "content");
     is($t->Type, $args{Type}, "template type");
 
-    my ($ok, $msg) = $t->Parse(TicketObj => $ticket);
+    my ($ok, $msg) = $t->Parse(
+        TicketObj      => $ticket,
+        TransactionObj => $ticket->Transactions->First,
+    );
     ok($ok, $msg);
     is($t->MIMEObj->stringify_body, $args{Output}, "template's output");
 }

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


More information about the Rt-commit mailing list