Debian Codegraph @

t/config_multiapp.t

raw
1 use strict;
2 use warnings;
3
4 use Test::More;
5
6 use lib '.';
7 use t::app::t1::lib::App1;
8 use t::app::t1::lib::Sub::App2;
9 use t::app::t2::lib::App3;
10
11 for my $app ( @{ Dancer2->runner->apps } ) {
12 # Need to determine path to config; use apps' name for now..
13 my $path = $app->name eq 'App3' ? 't2' : 't1';
14
15 is $app->config->{app}->{config}, 'ok',
16 $app->name . ": config loaded properly"
17 }
18
19 done_testing;