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