X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flive%2Fengine%2Fresponse%2Fcookies.t;fp=t%2Fengine%2Fresponse%2Fcookies.t;h=410e35162a96b2d4813b85ec72824d5de77c1722;hp=26de1a104fe32839f3381d292f9d7b899dabc7ff;hb=fbcc39ad23f2bbecf5d84c9ba581e6af86fcd460;hpb=21465c884872c1ec8c30acd72796445f9eaacb31 diff --git a/t/engine/response/cookies.t b/t/live/engine/response/cookies.t similarity index 72% rename from t/engine/response/cookies.t rename to t/live/engine/response/cookies.t index 26de1a1..410e351 100644 --- a/t/engine/response/cookies.t +++ b/t/live/engine/response/cookies.t @@ -11,17 +11,18 @@ use Catalyst::Test 'TestApp'; use HTTP::Headers::Util 'split_header_words'; - -my $expected = { - Catalyst => [ qw( Catalyst Cool path / ) ], - Cool => [ qw( Cool Catalyst path / ) ] +my $expected = { + Catalyst => [qw( Catalyst Cool path / )], + Cool => [qw( Cool Catalyst path / )] }; { - ok( my $response = request('http://localhost/engine/response/cookies/one'), 'Request' ); + ok( my $response = request('http://localhost/engine/response/cookies/one'), + 'Request' ); ok( $response->is_success, 'Response Successful 2xx' ); is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->header('X-Catalyst-Action'), 'engine/response/cookies/one', 'Test Action' ); + is( $response->header('X-Catalyst-Action'), + 'engine/response/cookies/one', 'Test Action' ); my $cookies = {}; @@ -33,10 +34,12 @@ my $expected = { } { - ok( my $response = request('http://localhost/engine/response/cookies/two'), 'Request' ); + ok( my $response = request('http://localhost/engine/response/cookies/two'), + 'Request' ); ok( $response->is_redirect, 'Response Redirection 3xx' ); is( $response->code, 302, 'Response Code' ); - is( $response->header('X-Catalyst-Action'), 'engine/response/cookies/two', 'Test Action' ); + is( $response->header('X-Catalyst-Action'), + 'engine/response/cookies/two', 'Test Action' ); my $cookies = {};