X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F20-mock_load.t;h=d095161e7e3f0fc2fa9b04ba4eedac8e3b5a0234;hb=ea561203163b92d13ed021622d60717a604bf4ac;hp=b2dff3960cd784235c6ddb434a80218577213044;hpb=af3918983028c3019d24b0c80f6dbd948b0fe3c3;p=catagits%2FCatalyst-Plugin-ConfigLoader.git diff --git a/t/20-mock_load.t b/t/20-mock_load.t index b2dff39..d095161 100644 --- a/t/20-mock_load.t +++ b/t/20-mock_load.t @@ -8,7 +8,7 @@ $ENV{ CATALYST_HOME } = cwd . '/t/mockapp'; use_ok( 'Catalyst', qw( ConfigLoader ) ); __PACKAGE__->config->{ 'Plugin::ConfigLoader' }->{ substitutions } = { - foo => sub { shift; join('-', @_); } + foo => sub { shift; join( '-', @_ ); } }; __PACKAGE__->setup; @@ -16,8 +16,8 @@ __PACKAGE__->setup; ok( __PACKAGE__->config ); is( __PACKAGE__->config->{ 'Controller::Foo' }->{ foo }, 'bar' ); is( __PACKAGE__->config->{ 'Controller::Foo' }->{ new }, 'key' ); -is( __PACKAGE__->config->{ 'Model::Baz' }->{ qux }, 'xyzzy' ); -is( __PACKAGE__->config->{ 'Model::Baz' }->{ another }, 'new key' ); -is( __PACKAGE__->config->{ 'view' }, 'View::TT::New' ); -is( __PACKAGE__->config->{ 'foo_sub' }, 'x-y' ); -is( __PACKAGE__->config->{ 'literal_macro' }, '__DATA__' ); +is( __PACKAGE__->config->{ 'Model::Baz' }->{ qux }, 'xyzzy' ); +is( __PACKAGE__->config->{ 'Model::Baz' }->{ another }, 'new key' ); +is( __PACKAGE__->config->{ 'view' }, 'View::TT::New' ); +is( __PACKAGE__->config->{ 'foo_sub' }, 'x-y' ); +is( __PACKAGE__->config->{ 'literal_macro' }, '__DATA__' );