7 use lib "$FindBin::Bin/lib";
\r
9 use Test::More tests => 4;
\r
10 use Catalyst::Test 'TestApp';
\r
12 # test custom MIME types
\r
13 TestApp->config->{'Plugin::Static::Simple'}->{mime_types} = {
\r
15 gif => 'patents/are-evil',
\r
18 ok( my $res = request('http://localhost/files/err.omg'), 'request ok' );
\r
19 is( $res->content_type, 'holy/crap', 'custom MIME type ok' );
\r
21 ok( $res = request('http://localhost/files/bad.gif'), 'request ok' );
\r
22 is( $res->content_type, 'patents/are-evil', 'custom MIME type overlay ok' );
\r