multiple replaces for __HOME__ and __path_to()__
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 10-live_auto.t
index 8420c27..5ec9575 100644 (file)
@@ -4,7 +4,7 @@ use warnings;
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
-use Test::More tests => 4;
+use Test::More tests => 5;
 
 use Catalyst::Test 'TestApp';
 
@@ -18,4 +18,9 @@ use Catalyst::Test 'TestApp';
 
     $response = request('http://localhost/appconfig/foo');
     is( $response->content, 'bar', 'app finalize_config works' );
+
+    $response = request('http://localhost/appconfig/multi');
+    my $home = TestApp->config->{ home };
+    my $path = join( ',', $home, TestApp->path_to( 'x' ), $home, TestApp->path_to( 'y' ) );
+    is( $response->content, $path, 'vars substituted in config var, twice' );
 }