From: Marcus Ramberg Date: Thu, 2 Mar 2006 15:37:23 +0000 (+0000) Subject: also, tests. X-Git-Tag: 5.7099_04~682 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f98b9376ac4d6f02adb512be0608622452a39c48 also, tests. --- diff --git a/t/live_engine_response_redirect.t b/t/live_engine_response_redirect.t index 3295779..5afe11f 100644 --- a/t/live_engine_response_redirect.t +++ b/t/live_engine_response_redirect.t @@ -12,7 +12,7 @@ use Catalyst::Test 'TestApp'; { ok( my $response = request('http://localhost/engine/response/redirect/one'), 'Request' ); ok( $response->is_redirect, 'Response Redirection 3xx' ); - is( $response->code, 302, 'Response Code' ); + is( $response->code, 301, 'Response Code' ); is( $response->header('X-Catalyst-Action'), 'engine/response/redirect/one', 'Test Action' ); is( $response->header('Location'), '/test/writing/is/boring', 'Response Header Location' ); } @@ -20,7 +20,7 @@ use Catalyst::Test 'TestApp'; { ok( my $response = request('http://localhost/engine/response/redirect/two'), 'Request' ); ok( $response->is_redirect, 'Response Redirection 3xx' ); - is( $response->code, 302, 'Response Code' ); + is( $response->code, 301, 'Response Code' ); is( $response->header('X-Catalyst-Action'), 'engine/response/redirect/two', 'Test Action' ); is( $response->header('Location'), 'http://www.google.com/', 'Response Header Location' ); }