3 use Test::More tests => 4;
6 use lib "$FindBin::Bin/lib";
8 BEGIN { use_ok 'TestApp' or die }
10 ok my $c = TestApp->new, 'Instantiate app object';
11 ok my $tt = $c->view('TT'), 'Get TT view object';
12 is $tt->render($c, 'test.tt', { message => 'hello' }), 'hello',
13 'render() should return the template output';