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