From: André Walker Date: Thu, 28 Jul 2011 23:02:41 +0000 (-0300) Subject: added test for broken applevel config functionality X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=dcd608250d14fa1efc3e25e7a14a23ffa95c75cf added test for broken applevel config functionality --- diff --git a/t/aggregate/unit_core_container_applevel_config.t b/t/aggregate/unit_core_container_applevel_config.t new file mode 100644 index 0000000..9ec08a4 --- /dev/null +++ b/t/aggregate/unit_core_container_applevel_config.t @@ -0,0 +1,19 @@ +#!perl + +use FindBin; +use lib "$FindBin::Bin/../lib"; + +use Test::More; +use TestAppContainer; + +my $applevel_config = TestAppContainer->container->resolve(service => 'config')->{applevel_config}; + +ok($applevel_config, 'applevel_config exists in the container'); +is($applevel_config, 'foo', 'and has the correct value'); + +$applevel_config = TestAppContainer->config->{applevel_config}; + +ok($applevel_config, 'applevel_config exists in the config accessor'); +is($applevel_config, 'foo', 'and has the correct value'); + +done_testing;