tweak the test case
John Napiorkowski [Wed, 18 Dec 2013 14:55:15 +0000 (08:55 -0600)]
t/lib/TestMiddlewareFromConfig.pm
t/lib/TestMiddlewareFromConfig/testmiddlewarefromconfig.pl

index ca18208..4c0af79 100644 (file)
@@ -5,5 +5,6 @@ use Catalyst qw/ConfigLoader/;
 ## Proof this is good config
 ##__PACKAGE__->config( do TestMiddlewareFromConfig->path_to('testmiddlewarefromconfig.pl') );
 
+__PACKAGE__->setup_middleware('Head');
 __PACKAGE__->setup;
 
index 4df352d..d470f04 100644 (file)
@@ -6,7 +6,6 @@ my $static = Plack::Middleware::Static->new(
 my $conf = +{
   'Controller::Root', { namespace => '' },
   'psgi_middleware', [
-    'Head',
     $static,
     'Static', { path => qr{^/static2/}, root => TestMiddlewareFromConfig->path_to('share') },
     'Runtime',