Remove requirement on Catalyst::Helper, and instead skip the test that fails
Toby Corkindale [Tue, 30 Jun 2009 08:17:53 +0000 (08:17 +0000)]
without its presence.

Makefile.PL
t/08helper.t

index b6ec4b0..faa185d 100644 (file)
@@ -16,7 +16,6 @@ requires 'Tie::IxHash';
 
 test_requires 'Test::More';
 test_requires 'Test::Exception';
-test_requires 'Catalyst::Helper';
 
 feature 'Catalyst::Helper support',
     -default                      => 0,
index 08951da..e7b2a9d 100644 (file)
@@ -4,11 +4,13 @@ use warnings;
 use FindBin '$Bin';
 use lib "$Bin/lib";
 
-use Test::More tests => 40;
+use Test::More;
 use Test::Exception;
 use Catalyst::Helper::Model::DBIC::Schema;
-use Catalyst::Helper;
 use Storable 'dclone';
+eval "use Catalyst::Helper";
+plan skip_all => 'Catalyst::Helper required for tests' if $@;
+plan tests => 40;
 
 my $helper      = Catalyst::Helper->new;
 $helper->{base} = $Bin;