X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F07mime_types.t;h=06e3277c8f8b2cae68d10d0bf737467f2b055eb1;hb=18e099c0762b16bac84622b03e2f5eae6dda97e7;hp=e9276b06b79f1cf1980eed0cf35df13ce38dfc83;hpb=ee1e7faf8d6bb43a85f6d6f74b8f0bd7b7e8712a;p=catagits%2FCatalyst-Plugin-Static-Simple.git diff --git a/t/07mime_types.t b/t/07mime_types.t index e9276b0..06e3277 100644 --- a/t/07mime_types.t +++ b/t/07mime_types.t @@ -11,11 +11,11 @@ use Catalyst::Test 'TestApp'; # test custom MIME types TestApp->config->{'Plugin::Static::Simple'}->{mime_types} = { - omg => 'holy/crap', + unknown => 'holy/crap', gif => 'patents/are-evil', }; -ok( my $res = request('http://localhost/files/err.omg'), 'request ok' ); +ok( my $res = request('http://localhost/files/err.unknown'), 'request ok' ); is( $res->content_type, 'holy/crap', 'custom MIME type ok' ); ok( $res = request('http://localhost/files/bad.gif'), 'request ok' );