revert all changes since 0.5
[catagits/HTTP-Request-AsCGI.git] / t / deprecated / 08error.t
diff --git a/t/deprecated/08error.t b/t/deprecated/08error.t
deleted file mode 100644 (file)
index f117014..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#!perl
-
-use Test::More tests => 12;
-
-use strict;
-use warnings;
-
-use IO::File;
-use HTTP::Request;
-use HTTP::Request::AsCGI;
-
-my $response;
-
-{
-    my $r = HTTP::Request->new( GET => 'http://www.host.com/' );
-    my $c = HTTP::Request::AsCGI->new($r);
-
-    $c->setup;
-
-    $response = $c->restore->response;
-}
-
-isa_ok( $response, 'HTTP::Response' );
-is( $response->code, 500, 'Response Code' );
-is( $response->message, 'Internal Server Error', 'Response Message' );
-is( $response->protocol, 'HTTP/1.1', 'Response Protocol' );
-is( $response->content_type, 'text/html', 'Response Content-Type' );
-ok( length($response->content) > 0, 'Response Content' );
-
-{
-    my $r = HTTP::Request->new( GET => 'http://www.host.com/' );
-    my $c = HTTP::Request::AsCGI->new($r);
-
-    $c->setup;
-    
-    print "Content-Type: text/plain\n";
-    print "Status: 500 Borked\n";
-    print "\n";
-    print "Borked!";
-
-    $response = $c->restore->response;
-}
-
-isa_ok( $response, 'HTTP::Response' );
-is( $response->code, 500, 'Response Code' );
-is( $response->message, 'Borked', 'Response Message' );
-is( $response->protocol, 'HTTP/1.1', 'Response Protocol' );
-is( $response->content_type, 'text/plain', 'Response Content-Type' );
-is( $response->content, 'Borked!', 'Response Content' );