Added a test for direct rendering of a template from a view object, without a
[catagits/Catalyst-View-TT.git] / trunk / t / 11norequest.t
CommitLineData
8cff6b81 1use strict;
2use warnings;
3use Test::More tests => 4;
4
5use FindBin;
6use lib "$FindBin::Bin/lib";
7
8BEGIN { use_ok 'TestApp' or die }
9
10ok my $c = TestApp->new, 'Instantiate app object';
11ok my $tt = $c->view('TT'), 'Get TT view object';
12is $tt->render($c, 'test.tt', { message => 'hello' }), 'hello',
13 'render() should return the template output';