Fix infinite recursion in tests under Catalyst 5.90040
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST.pm
index c6422bd..95ed5bf 100644 (file)
@@ -16,7 +16,10 @@ __PACKAGE__->config(
         content_type_stash_key => 'serialize_content_type',
     },
 );
+__PACKAGE__->request_class($ENV{CAR_TEST_REQUEST_CLASS})
+    if $ENV{CAR_TEST_REQUEST_CLASS};
 __PACKAGE__->setup;
-__PACKAGE__->log( Test::Catalyst::Log->new );
+__PACKAGE__->log( Test::Catalyst::Log->new )
+    unless __PACKAGE__->debug;
 
 1;