X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcatalyst-action-serialize-accept.t;h=2e268e0825f6c7be8ceaf4937c07b5e03e297cb6;hb=ef7fdb4877523cf584fe0b8627369d810508dbf8;hp=836a8e86f600577e43745ee48634c50047b4fc7a;hpb=74bc96b93609184ade74bd75a0a0a17fe8e4b374;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git diff --git a/t/catalyst-action-serialize-accept.t b/t/catalyst-action-serialize-accept.t index 836a8e8..2e268e0 100644 --- a/t/catalyst-action-serialize-accept.t +++ b/t/catalyst-action-serialize-accept.t @@ -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'