X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10-live_auto.t;h=e497bffa2d92eebfdc1be7592cca433c353c84b3;hb=94621b2636dd344b503a8910db871bfd7517b2bf;hp=56997e80031b122e5f58b13d696e0e337cc72669;hpb=b2d855940c68a8bec09c76f6235b804ef9090dc6;p=catagits%2FCatalyst-Plugin-ConfigLoader.git diff --git a/t/10-live_auto.t b/t/10-live_auto.t index 56997e8..e497bff 100644 --- a/t/10-live_auto.t +++ b/t/10-live_auto.t @@ -4,11 +4,18 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; -use Test::More tests => 2; +use Test::More tests => 4; use Catalyst::Test 'TestApp'; { - ok( my $response = request('http://localhost/config/'), 'request ok' ); + my $response; + ok( $response = request('http://localhost/config/'), 'request ok' ); is( $response->content, 'foo', 'config ok' ); + + $response = request('http://localhost/appconfig/cache'); + ok( $response->content !~ /^__HOME__/, 'home dir substituted in config var' ); + + $response = request('http://localhost/appconfig/foo'); + is( $response->content, 'bar', 'app finalize_config works' ); }