tests for the config( ...->{file} ) option. addresses bug when ->{file} is a dir...
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / lib / TestApp3.pm
1 package TestApp3;
2
3 use strict;
4 use warnings;
5
6 use MRO::Compat;
7
8 use Catalyst qw/ConfigLoader/;
9
10 our $VERSION = '0.01';
11
12 __PACKAGE__->config(
13     "Plugin::ConfigLoader" => {
14         file => __PACKAGE__->path_to( "config" )
15     }
16 );
17
18 __PACKAGE__->setup;
19
20 sub finalize_config {
21     my $c = shift;
22     $c->config( foo => 'bar3' );
23     $c->next::method( @_ );
24 }
25
26 1;