Commit | Line | Data |
---|---|---|
9164484f | 1 | use strict; |
2 | use warnings; | |
cbb149dc | 3 | use Test::More tests => 3; |
9164484f | 4 | |
5 | use FindBin; | |
6 | use lib "$FindBin::Bin/lib"; | |
7 | ||
8 | BEGIN { use_ok 'TestApp' or die } | |
9 | ||
cbb149dc | 10 | ok my $tt = TestApp->view('TT'), 'Get TT view object'; |
11 | is $tt->render(undef, 'test.tt', { message => 'hello' }), 'hello', | |
9164484f | 12 | 'render() should return the template output'; |