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