fix configloader to use Catalyst::Utils::env_value()
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 20-mock_load.t
CommitLineData
a7afecf7 1package MockApp;
2
3use Test::More tests => 7;
4
5use Cwd;
6$ENV{ CATALYST_HOME } = cwd . '/t/mockapp';
7
8use_ok( 'Catalyst', qw( ConfigLoader ) );
9
10__PACKAGE__->setup;
11
a7afecf7 12ok( __PACKAGE__->config );
13is( __PACKAGE__->config->{ 'Controller::Foo' }->{ foo }, 'bar' );
14is( __PACKAGE__->config->{ 'Controller::Foo' }->{ new }, 'key' );
15is( __PACKAGE__->config->{ 'Model::Baz' }->{ qux }, 'xyzzy' );
16is( __PACKAGE__->config->{ 'Model::Baz' }->{ another }, 'new key' );
17is( __PACKAGE__->config->{ 'view' }, 'View::TT::New' );