foo
Yuval Kogman [Mon, 16 Jul 2007 10:26:20 +0000 (10:26 +0000)]
Makefile.PL
t/06_finalize.t

index e5fd367..16f5ec4 100644 (file)
@@ -9,7 +9,7 @@ my @extra;
 
 foreach my $module (keys %state) {
     if ( eval "require Catalyst::Plugin::Session::State::$module" and
-    not eval { "Catalyst::Plugin::Session::State::$module"->VERSION($state{$module}) } ) {
+    ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) {
         warn <<WARN;
 
 ********** NOTE **********
index 6b07b8e..6ce8e7a 100644 (file)
@@ -3,7 +3,15 @@
 use strict;
 use warnings;
 
-use Test::More tests => 3;
+use Test::More;
+
+BEGIN {
+    if ( eval { require Catalyst::Plugin::Session::State::Cookie } ) {
+        plan tests => 3;
+    } else {
+        plan skip_all => "Catalyst::Plugin::Session::State::Cookie required";
+    }
+}
 
 my $finalized = 0;