Shut up log output from Catalyst with null log object
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST.pm
index 70414ec..c6422bd 100644 (file)
@@ -1,15 +1,22 @@
 package Test::Catalyst::Action::REST;
 
-use strict;
-use warnings;
+use Moose;
+use namespace::autoclean;
 
 use Catalyst::Runtime '5.70';
 
 use Catalyst;
+use FindBin;
+use Test::Catalyst::Log;
 
 __PACKAGE__->config(
     name => 'Test::Catalyst::Action::REST',
+    # RT#43840 -- this was ignored in 0.66 and earlier
+    'Controller::Serialize' => {
+        content_type_stash_key => 'serialize_content_type',
+    },
 );
 __PACKAGE__->setup;
+__PACKAGE__->log( Test::Catalyst::Log->new );
 
 1;