Add support for running render without a context
[catagits/Catalyst-View-TT.git] / t / 11norequest.t
CommitLineData
9164484f 1use strict;
2use warnings;
cbb149dc 3use Test::More tests => 3;
9164484f 4
5use FindBin;
6use lib "$FindBin::Bin/lib";
7
8BEGIN { use_ok 'TestApp' or die }
9
cbb149dc 10ok my $tt = TestApp->view('TT'), 'Get TT view object';
11is $tt->render(undef, 'test.tt', { message => 'hello' }), 'hello',
9164484f 12 'render() should return the template output';