X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10-live_auto.t;h=782bf7da05c62be68074c1d3cc14a82cf41e23db;hb=802a7626d6d40a25603748f71e8e7c85727ea0de;hp=5ec95756ae6210f6107566bb39847af34dfbdcfe;hpb=3af1b75e9cdce7583b14eea7d8c83f5643c18e51;p=catagits%2FCatalyst-Plugin-ConfigLoader.git diff --git a/t/10-live_auto.t b/t/10-live_auto.t index 5ec9575..782bf7d 100644 --- a/t/10-live_auto.t +++ b/t/10-live_auto.t @@ -10,17 +10,21 @@ use Catalyst::Test 'TestApp'; { my $response; - ok( $response = request('http://localhost/config/'), 'request ok' ); + 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/cache' ); + ok( $response->content !~ /^__HOME__/, + 'home dir substituted in config var' + ); - $response = request('http://localhost/appconfig/foo'); + $response = request( 'http://localhost/appconfig/foo' ); is( $response->content, 'bar', 'app finalize_config works' ); - $response = request('http://localhost/appconfig/multi'); + $response = request( 'http://localhost/appconfig/multi' ); my $home = TestApp->config->{ home }; - my $path = join( ',', $home, TestApp->path_to( 'x' ), $home, TestApp->path_to( 'y' ) ); + my $path = join( ',', + $home, TestApp->path_to( 'x' ), + $home, TestApp->path_to( 'y' ) ); is( $response->content, $path, 'vars substituted in config var, twice' ); }