7 use lib "$FindBin::Bin/lib";
9 use Test::More tests => 6;
10 use Catalyst::Test 'TestApp';
12 # test getting a file via serve_static_file
13 ok( my $res = request('http://localhost/serve_static'), 'request ok' );
14 is( $res->code, 200, '200 ok' );
15 # .pm can be both application/x-pagemaker or text/x-perl, so only check for a slash
16 like( $res->content_type, qr{/}, 'content-type ok' );
17 like( $res->content, qr/package TestApp/, 'content of serve_static ok' );
19 # test getting a non-existant file via serve_static_file
20 ok( $res = request('http://localhost/serve_static_404'), 'request ok' );
21 is( $res->code, 404, '404 ok' );