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;
}
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');
}
# 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'