projects
/
catagits/Catalyst-Plugin-ConfigLoader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
perltidy
[catagits/Catalyst-Plugin-ConfigLoader.git]
/
t
/
lib
/
TestApp.pm
diff --git
a/t/lib/TestApp.pm
b/t/lib/TestApp.pm
index
6d4b336
..
15482b7
100644
(file)
--- a/
t/lib/TestApp.pm
+++ b/
t/lib/TestApp.pm
@@
-9,4
+9,15
@@
our $VERSION = '0.01';
__PACKAGE__->setup;
+sub finalize_config {
+ my $c = shift;
+ $c->config( foo => 'bar' );
+ $c->NEXT::finalize_config;
+}
+
+sub appconfig : Local {
+ my ( $self, $c, $var ) = @_;
+ $c->res->body( $c->config->{ $var } );
+}
+
1;