X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_engine_response_redirect.t;h=329577957fc77fb6bc1fabc5bfa65f18cd11672b;hb=2bf9a2ec89467d3f2ff89370cb82336ad07d721a;hp=5afe11fc9d48dd48159ca7959038b77a42652523;hpb=f98b9376ac4d6f02adb512be0608622452a39c48;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_engine_response_redirect.t b/t/live_engine_response_redirect.t index 5afe11f..3295779 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, 301, 'Response Code' ); + is( $response->code, 302, '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, 301, 'Response Code' ); + is( $response->code, 302, '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' ); }