importing Catalyst has special, magical effects. You really didn't want to do that...
[catagits/Catalyst-Action-REST.git] / t / catalyst-action-serialize-accept.t
index 836a8e8..2e268e0 100644 (file)
@@ -3,7 +3,6 @@ use warnings;
 use Test::More tests => 16;
 use Data::Serializer;
 use FindBin;
-use Data::Dump qw(dump);
 
 use lib ("$FindBin::Bin/lib", "$FindBin::Bin/../lib", "$FindBin::Bin/broken");
 use Test::Rest;
@@ -37,7 +36,7 @@ EOH
 }
 
 SKIP: {
-    eval 'require JSON 2.12;';
+    eval 'use JSON 2.12;';
     skip "can't test application/json without JSON support", 3 if $@;
     my $json = JSON->new;
     my $at = Test::Rest->new('content_type' => 'text/doesnt-exist');
@@ -74,6 +73,8 @@ SKIP: {
 }
 
 # Make that using content_type_stash_key, a valid value in the stash gets priority
+# this also tests that application-level config is properly passed to
+# individual controllers; see t/lib/Test/Catalyst/Action/REST.pm
 {
        my $req = $t->get(url =>
            '/serialize/test_second?serialize_content_type=text/x-data-dumper'