From: Tomas Doran Date: Mon, 23 Jun 2008 20:39:28 +0000 (+0000) Subject: Use non-deprecated modules in the test suite. X-Git-Tag: v0.11~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5b51e987299d4353e59314273505aa0c9d8d687c;hp=d99b76939096104686844f02449947620bedff31;p=catagits%2FCatalyst-Authentication-Credential-HTTP.git Use non-deprecated modules in the test suite. --- diff --git a/Changes b/Changes index c669fc7..8f184b9 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,6 @@ +0.11 2008-XX-XX + - Changed cache modules used in the tests to not be deprecated. + 0.10 2007-04-26 - switch to Module::Install diff --git a/t/live_app_digest.t b/t/live_app_digest.t index c50bac2..996eda2 100644 --- a/t/live_app_digest.t +++ b/t/live_app_digest.t @@ -6,9 +6,12 @@ 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::FileCache } + eval { require Catalyst::Plugin::Cache } or plan skip_all => - "Catalyst::Plugin::Cache::FileCache is needed for this test"; + "Catalyst::Plugin::Cache is needed for this test"; + eval { require Cache::FileCache } + or plan skip_all => + "Cache::FileCache is needed for this test"; plan tests => 4; } use HTTP::Request; @@ -18,7 +21,7 @@ use HTTP::Request; Authentication Authentication::Store::Minimal Authentication::Credential::HTTP - Cache::FileCache + Cache /; use Test::More; our $users; @@ -27,6 +30,9 @@ 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", },