added test for broken applevel config functionality
André Walker [Thu, 28 Jul 2011 23:02:41 +0000 (20:02 -0300)]
t/aggregate/unit_core_container_applevel_config.t [new file with mode: 0644]

diff --git a/t/aggregate/unit_core_container_applevel_config.t b/t/aggregate/unit_core_container_applevel_config.t
new file mode 100644 (file)
index 0000000..9ec08a4
--- /dev/null
@@ -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;