Back out r7888 as I am lose, and doing compat properly isn't nice. Going to push...
[catagits/Catalyst-Authentication-Credential-HTTP.git] / t / live_app_digest.t
index 16088e0..c50bac2 100644 (file)
@@ -6,12 +6,9 @@ BEGIN {
     eval { require Test::WWW::Mechanize::Catalyst }
       or plan skip_all =>
       "Test::WWW::Mechanize::Catalyst is needed for this test";
-    eval { require Catalyst::Plugin::Cache }
+    eval { require Catalyst::Plugin::Cache::FileCache }
       or plan skip_all =>
-      "Catalyst::Plugin::Cache is needed for this test";
-    eval { require Cache::FileCache }
-      or plan skip_all =>
-      "Cache::FileCache is needed for this test";
+      "Catalyst::Plugin::Cache::FileCache is needed for this test";
     plan tests => 4;
 }
 use HTTP::Request;
@@ -21,7 +18,7 @@ use HTTP::Request;
       Authentication
       Authentication::Store::Minimal
       Authentication::Credential::HTTP
-      Cache
+      Cache::FileCache
       /;
     use Test::More;
     our $users;
@@ -30,9 +27,6 @@ use HTTP::Request;
         $c->authorization_required( realm => 'testrealm@host.com' );
         $c->res->body( $c->user->id );
     }
-    __PACKAGE__->config->{cache}{backend} = {
-        class => 'Cache::FileCache',
-    };
     __PACKAGE__->config->{authentication}{http}{type} = 'digest';
     __PACKAGE__->config->{authentication}{users} = $users = {
         Mufasa => { password         => "Circle Of Life", },
@@ -82,4 +76,3 @@ $r->headers->push_header( Authorization => $response );
 $mech->request($r);
 is( $mech->status, 200, "status is 200" );
 $mech->content_contains( "Mufasa", "Mufasa output" );
-