ConfigLoader 0.04
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 10-live_auto.t
index 56997e8..e497bff 100644 (file)
@@ -4,11 +4,18 @@ use warnings;
 use FindBin;\r
 use lib "$FindBin::Bin/lib";\r
 \r
-use Test::More tests => 2;\r
+use Test::More tests => 4;\r
 \r
 use Catalyst::Test 'TestApp';\r
 \r
 {\r
-    ok( my $response = request('http://localhost/config/'), 'request ok' );\r
+    my $response;\r
+    ok( $response = request('http://localhost/config/'), 'request ok' );\r
     is( $response->content, 'foo', 'config ok' );\r
+\r
+       $response = request('http://localhost/appconfig/cache');\r
+       ok( $response->content !~ /^__HOME__/, 'home dir substituted in config var' );\r
+\r
+       $response = request('http://localhost/appconfig/foo');\r
+       is( $response->content, 'bar', 'app finalize_config works' );\r
 }\r