[Catalyst-commits] r13863 - Catalyst-Action-RenderView/trunk/t
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Thu Dec 16 22:10:06 GMT 2010
Author: t0m
Date: 2010-12-16 22:10:06 +0000 (Thu, 16 Dec 2010)
New Revision: 13863
Modified:
Catalyst-Action-RenderView/trunk/t/04live.t
Log:
Remove crap from tests
Modified: Catalyst-Action-RenderView/trunk/t/04live.t
===================================================================
--- Catalyst-Action-RenderView/trunk/t/04live.t 2010-12-16 22:08:53 UTC (rev 13862)
+++ Catalyst-Action-RenderView/trunk/t/04live.t 2010-12-16 22:10:06 UTC (rev 13863)
@@ -6,26 +6,13 @@
use FindBin;
use lib "$FindBin::Bin/lib";
-use Test::More tests => 15;
+use Test::More 0.88;
use Catalyst::Test 'TestApp';
-BEGIN {
- no warnings 'redefine';
-
- *Catalyst::Test::local_request = sub {
- my ( $class, $request ) = @_;
-
- require HTTP::Request::AsCGI;
- my $cgi = HTTP::Request::AsCGI->new( $request, %ENV )->setup;
-
- $class->handle_request;
-
- return $cgi->restore->response;
- };
-}
-
run_tests();
+done_testing;
+
sub run_tests {
# test first available view
More information about the Catalyst-commits
mailing list