Commit | Line | Data |
---|---|---|
9164484f | 1 | use strict; |
2 | use warnings; | |
3 | use Test::More tests => 4; | |
4 | ||
5 | use FindBin; | |
6 | use lib "$FindBin::Bin/lib"; | |
7 | ||
8 | BEGIN { use_ok 'TestApp' or die } | |
9 | ||
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'; |