ConfigLoader 0.04
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 10-live_auto.t
CommitLineData
b2d85594 1use strict;\r
2use warnings;\r
3\r
4use FindBin;\r
5use lib "$FindBin::Bin/lib";\r
6\r
9742697f 7use Test::More tests => 4;\r
b2d85594 8\r
9use Catalyst::Test 'TestApp';\r
10\r
11{\r
9742697f 12 my $response;\r
13 ok( $response = request('http://localhost/config/'), 'request ok' );\r
b2d85594 14 is( $response->content, 'foo', 'config ok' );\r
9742697f 15\r
16 $response = request('http://localhost/appconfig/cache');\r
17 ok( $response->content !~ /^__HOME__/, 'home dir substituted in config var' );\r
18\r
19 $response = request('http://localhost/appconfig/foo');\r
20 is( $response->content, 'bar', 'app finalize_config works' );\r
b2d85594 21}\r