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