(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
--- /dev/null
+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';