From e3d97f2c50fe7661ebe483c4fdc82f173ef344d9 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 27 Dec 2012 20:14:57 -0500 Subject: [PATCH] Bug 9209: Skip tests for older DBD::Mock Because the calendar tests require a more recent version of DBD::Mock than has been packaged by Debian, it makes sense to skip all the tests requiring the database when only an older version is present. --- t/Calendar.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/Calendar.t b/t/Calendar.t index 2557ed6..8648968 100755 --- a/t/Calendar.t +++ b/t/Calendar.t @@ -37,6 +37,10 @@ $module_context->mock( } ); +SKIP: { + +skip "DBD::Mock is too old", 33 + unless $DBD::Mock::VERSION >= 1.45; my $holidays_session = DBD::Mock::Session->new('holidays_session' => ( { # weekly holidays @@ -320,3 +324,5 @@ my $day_after_christmas = DateTime->new( '==', 40, 'Test parameter order not relevant (Days)' ); } + +} # End SKIP block -- 1.7.9.5