X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestMiddlewareFromConfig%2Ftestmiddlewarefromconfig.pl;fp=t%2Flib%2FTestMiddlewareFromConfig%2Ftestmiddlewarefromconfig.pl;h=0000000000000000000000000000000000000000;hp=d470f04af32390240519c7cba3e22ed09dbefaa8;hb=a21b003477f442246a2e68d0d4ec8267332b09bf;hpb=479ca942e35e0764d3a48d4e49da4cc8c33133f8 diff --git a/t/lib/TestMiddlewareFromConfig/testmiddlewarefromconfig.pl b/t/lib/TestMiddlewareFromConfig/testmiddlewarefromconfig.pl deleted file mode 100644 index d470f04..0000000 --- a/t/lib/TestMiddlewareFromConfig/testmiddlewarefromconfig.pl +++ /dev/null @@ -1,27 +0,0 @@ -use Plack::Middleware::Static; - -my $static = Plack::Middleware::Static->new( - path => qr{^/static/}, root => TestMiddlewareFromConfig->path_to('share')); - -my $conf = +{ - 'Controller::Root', { namespace => '' }, - 'psgi_middleware', [ - $static, - 'Static', { path => qr{^/static2/}, root => TestMiddlewareFromConfig->path_to('share') }, - 'Runtime', - '+TestMiddleware::Custom', { path => qr{^/static3/}, root => TestMiddlewareFromConfig->path_to('share') }, - sub { - my $app = shift; - return sub { - my $env = shift; - if($env->{PATH_INFO} =~m/forced/) { - Plack::App::File->new(file=>TestMiddlewareFromConfig->path_to(qw/share static forced.txt/)) - ->call($env); - } else { - return $app->($env); - } - }, - }, - - ], -};