Update stash key from 'template_path' to 'template' to match mojo change

Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
This commit is contained in:
giftnuss authored and Ask Bjørn Hansen committed 2009-07-29 15:44:10 -07:00
1 parent 460b36497a
commit 165c3b39f2
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -17,13 +17,13 @@ my $mt = MojoX::Renderer::TT->build;
my $output;
my $rv;
$c->stash->{template_path} = 't/render/template.tt2';
$c->stash->{template} = 't/render/template.tt2';
$rv = $mt->(undef, $c, \$output);
is($rv, 1);
is($output, "4\n");
$c->stash->{template_path} = 't/render/error.tt2';
$c->stash->{template} = 't/render/error.tt2';
$rv = $mt->(undef, $c, \$output);
is($rv, 0);
ok($output);