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.
Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Works as advertised
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
}
);
+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
'==', 40, 'Test parameter order not relevant (Days)' );
}
+
+} # End SKIP block