From: Alexander Hartmaier Date: Fri, 11 Dec 2015 09:40:46 +0000 (+0100) Subject: load Catalyst::Exception in Backend X-Git-Tag: v1.016~1^2~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Store-LDAP.git;a=commitdiff_plain;h=8aab9b07167e33f7fd63acc016dccc377a0754b1 load Catalyst::Exception in Backend because we use it there to throw exceptions and don't need to load it in each test to workaround the omission --- diff --git a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm index b7eca84..4a2a797 100644 --- a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm +++ b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm @@ -79,6 +79,7 @@ our $VERSION = '1.015'; use Catalyst::Authentication::Store::LDAP::User; use Net::LDAP; use Catalyst::Utils (); +use Catalyst::Exception; BEGIN { __PACKAGE__->mk_accessors( diff --git a/t/02-realms_api.t b/t/02-realms_api.t index 3683373..5412ab6 100644 --- a/t/02-realms_api.t +++ b/t/02-realms_api.t @@ -2,7 +2,6 @@ use strict; use warnings; -use Catalyst::Exception; use Test::More; use lib 't/lib'; diff --git a/t/03-entry_class.t b/t/03-entry_class.t index ebfce1f..3adc314 100644 --- a/t/03-entry_class.t +++ b/t/03-entry_class.t @@ -2,7 +2,6 @@ use strict; use warnings; -use Catalyst::Exception; use Test::More; use lib 't/lib'; diff --git a/t/04-user_class.t b/t/04-user_class.t index 8689024..a5aadc4 100644 --- a/t/04-user_class.t +++ b/t/04-user_class.t @@ -2,7 +2,6 @@ use strict; use warnings; -use Catalyst::Exception; use Test::More; use lib 't/lib'; diff --git a/t/05-user_attributes.t b/t/05-user_attributes.t index 54d79c9..19be676 100644 --- a/t/05-user_attributes.t +++ b/t/05-user_attributes.t @@ -2,7 +2,6 @@ use strict; use warnings; -use Catalyst::Exception; use Test::More; use lib 't/lib'; diff --git a/t/10-roles-mock.t b/t/10-roles-mock.t index d7ec065..59dd8f6 100644 --- a/t/10-roles-mock.t +++ b/t/10-roles-mock.t @@ -2,7 +2,6 @@ use strict; use warnings; -use Catalyst::Exception; use Test::More; use Test::MockObject::Extends; diff --git a/t/50.auth.case.sensitivity.t b/t/50.auth.case.sensitivity.t index c4d669d..8cbaba3 100644 --- a/t/50.auth.case.sensitivity.t +++ b/t/50.auth.case.sensitivity.t @@ -2,7 +2,6 @@ # vim: ts=8 sts=4 et sw=4 sr sta use strict; use warnings; -use Catalyst::Exception; use Test::More;