Fix warning and test blank body behavior
[catagits/Catalyst-Action-Serialize-Data-Serializer.git] / t / lib / Test / Catalyst / Action / REST.pm
index 70414ec..0b992b7 100644 (file)
@@ -1,15 +1,23 @@
 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 )
+    unless __PACKAGE__->debug;
 
 1;