projects
/
catagits/Catalyst-Plugin-ConfigLoader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
ConfigLoader 0.04
[catagits/Catalyst-Plugin-ConfigLoader.git]
/
t
/
lib
/
TestApp.pm
diff --git
a/t/lib/TestApp.pm
b/t/lib/TestApp.pm
index
6d4b336
..
50eecc7
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;