Switch to being a Moose role
[catagits/Catalyst-Plugin-Static-Simple.git] / t / 11serve_static.t
index da17d5a..f98760f 100644 (file)
@@ -12,9 +12,10 @@ use Catalyst::Test 'TestApp';
 # test getting a file via serve_static_file
 ok( my $res = request('http://localhost/serve_static'), 'request ok' );
 is( $res->code, 200, '200 ok' );
-is( $res->content_type, 'application/x-pagemaker', 'content-type ok' );
-like( $res->content, qr/serve_static/, 'content of serve_static ok' );
+# .pm can be both application/x-pagemaker or text/x-perl, so only check for a slash
+like( $res->content_type, qr{/}, 'content-type ok' );
+like( $res->content, qr/package TestApp/, 'content of serve_static ok' );
 
 # test getting a non-existant file via serve_static_file
 ok( $res = request('http://localhost/serve_static_404'), 'request ok' );
-is( $res->code, 404, '404 ok' );
\ No newline at end of file
+is( $res->code, 404, '404 ok' );