[Catalyst-commits] r11302 - in Catalyst-View-TT/trunk: . t

theory at dev.catalyst.perl.org theory at dev.catalyst.perl.org
Wed Sep 2 22:59:09 GMT 2009


Author: theory
Date: 2009-09-02 22:59:08 +0000 (Wed, 02 Sep 2009)
New Revision: 11302

Added:
   Catalyst-View-TT/trunk/t/11norequest.t
Modified:
   Catalyst-View-TT/trunk/Changes
Log:
Added a test for direct rendering of a template from a view object, without a
request.



Modified: Catalyst-View-TT/trunk/Changes
===================================================================
--- Catalyst-View-TT/trunk/Changes	2009-09-02 22:38:58 UTC (rev 11301)
+++ Catalyst-View-TT/trunk/Changes	2009-09-02 22:59:08 UTC (rev 11302)
@@ -9,6 +9,8 @@
             (Gunnar Strand)
         - "use warnings" in Catalyst::View::TT and output from the TT helper
         - Expand TTSite documentation (RT #33838)
+        - Added a test for direct rendering of a template from a view object,
+          without a request.
 
 0.29    2009-02-20 14:43:00
         - Remove extra unwanted .gitignore from manifest

Added: Catalyst-View-TT/trunk/t/11norequest.t
===================================================================
--- Catalyst-View-TT/trunk/t/11norequest.t	                        (rev 0)
+++ Catalyst-View-TT/trunk/t/11norequest.t	2009-09-02 22:59:08 UTC (rev 11302)
@@ -0,0 +1,13 @@
+use strict;
+use warnings;
+use Test::More tests => 4;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+BEGIN { use_ok 'TestApp' or die }
+
+ok my $c  = TestApp->new, 'Instantiate app object';
+ok my $tt = $c->view('TT'), 'Get TT view object';
+is $tt->render($c, 'test.tt', { message => 'hello' }), 'hello',
+    'render() should return the template output';




More information about the Catalyst-commits mailing list