Set the application class' %INC entry to something useful
[catagits/Web-Simple.git] / t / inc.t
1 use strict;
2 use warnings FATAL => 'all';
3
4 use Test::More 'no_plan';
5 use Plack::Test;
6
7 {
8   use Web::Simple 'IncTest';
9   package IncTest;
10   sub dispatch_request  {
11     sub (GET) {
12       [ 200,
13         [ "Content-type" => "text/plain" ],
14         [ $INC{'IncTest.pm'} ]
15       ]
16     },
17   }
18 }
19
20 my $app = IncTest->new;
21
22 is $app->run_test_request(GET => 'http://localhost/')->decoded_content, __FILE__;