Merge branch 'master' into travis
[catagits/Catalyst-Plugin-Static-Simple.git] / t / 14deprecated.t
CommitLineData
5ce67b0b 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/lib";
8
9use Test::More tests => 5;
10use Catalyst::Test 'IncTestApp';
11
12is( $TestLog::logged, "Deprecated 'static' config key used, please use the key 'Plugin::Static::Simple' instead",
13 "Got warning" );
14
15# test overlay dir
16ok( my $res = request('http://localhost/overlay.jpg'), 'request ok' );
17is( $res->content_type, 'image/jpeg', 'overlay path ok' );
18
19# test passthrough to root
20ok( $res = request('http://localhost/images/bad.gif'), 'request ok' );
21is( $res->content_type, 'image/gif', 'root path ok' );
22