From: Tomas Doran Date: Mon, 29 Sep 2008 15:02:18 +0000 (+0000) Subject: Fix issue with test when Best isn't available X-Git-Tag: 0.17~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5aaf0d463f679ad01264bf28125ade4c52888572;p=gitmo%2FMooseX-Storage.git Fix issue with test when Best isn't available --- diff --git a/Changes b/Changes index 94a33ef..4ef661b 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for MooseX-Storage +0.16 + * Don't fail tests when Best is unavailable (t0m) + 0.15 * MooseX::Storage - Remove use of deprecated alias_method routine diff --git a/t/040_basic_utils.t b/t/040_basic_utils.t index 3e1690c..1b65efd 100644 --- a/t/040_basic_utils.t +++ b/t/040_basic_utils.t @@ -75,7 +75,9 @@ SKIP: { my $classname = eval { MooseX::Storage::Util->peek($yaml => ('format' => 'YAML')) }; - if ($@ =~ /^Could not load YAML module because/) { + if ($@ =~ /^Could not load YAML module because/ + or $@ =~ /^Can't locate Best/ + ) { skip "No YAML module found", 1; }