Merge branch 'master' into travis
[catagits/Catalyst-Plugin-Static-Simple.git] / t / 13no_include_path.t
CommitLineData
5ce67b0b 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/lib";
8
9use Test::More tests => 4;
10use Catalyst::Test 'TestApp';
11
12# test passthrough to root
13ok( my $res = request('http://localhost/images/bad.gif'), 'request ok' );
14is( $res->content_type, 'image/gif', 'root path ok' );
15
16is( scalar @{ TestApp->config->{'Plugin::Static::Simple'}->{include_path} }, 1, 'One include path used');
17is( TestApp->config->{'Plugin::Static::Simple'}->{include_path}->[0], TestApp->config->{root}, "It's the root path" );