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:
1 parent
460b36497a
commit
165c3b39f2
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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);
|
||||
Reference in new issue
Block a user