Skip to content

Commit

Permalink
Added skip_all conditional statement to 45-datetime.t if DateTime is …
Browse files Browse the repository at this point in the history
…not installed.
  • Loading branch information
tima committed Sep 30, 2010
1 parent 21f01fb commit 407c357
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/45-datetime.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

use strict;
use lib 't/lib', 'extlib', 'lib', '../lib', '../extlib';

eval 'use DateTime';
if ($@) {
plan skip_all => 'DateTime is required to run these tests';
}

use Test::More;
use MT::DateTime;
use DateTime;
# use DateTime;
use DateTime::TimeZone;
use Time::Local qw(timegm);
use MT::Util qw(week2ymd);
Expand Down

0 comments on commit 407c357

Please sign in to comment.