Subject: | Some tests fail without CGI::Application::Plugin::Session |
If CGI::Application::Plugin::Session is not installed, these tests fail:
t/60_store
t/60_store_session
Updated tests and diffs attached.
Cheers,
Stephen
Subject: | test.patch |
--- dist/60_store.t 2006-10-01 07:43:15.000000000 +1000
+++ t/60_store.t 2007-01-25 08:33:21.000000000 +1100
@@ -7,7 +7,13 @@
use Test::More;
use Test::Exception;
-plan tests => 17;
+
+eval "use CGI::Application::Plugin::Session;";
+if ($@) {
+ plan skip_all => "CGI::Application::Plugin::Session required for this test";
+} else {
+ plan tests => 17;
+}
our %STORAGE;
@@ -16,7 +22,7 @@
package TestAppStoreDummy;
use base qw(TestAppStore);
- use CGI::Application::Plugin::Session;
+ CGI::Application::Plugin::Session->import; # it was used conditionally above
__PACKAGE__->authen->config(
DRIVER => [ 'Generic', { 'test' => '123' } ],
--- dist/60_store_session.t 2006-10-01 07:43:15.000000000 +1000
+++ t/60_store_session.t 2007-01-25 08:33:15.000000000 +1100
@@ -6,14 +6,20 @@
use CGI::Util;
use Test::More;
-plan tests => 14;
+
+eval "use CGI::Application::Plugin::Session;";
+if ($@) {
+ plan skip_all => "CGI::Application::Plugin::Session required for this test";
+} else {
+ plan tests => 14;
+}
{
package TestAppStoreSession;
use base qw(TestAppStore);
- use CGI::Application::Plugin::Session;
+ CGI::Application::Plugin::Session->import; # it was used conditionally above
__PACKAGE__->authen->config(
DRIVER => [ 'Generic', { 'test' => '123' } ],