From: Alexander Hartmaier Date: Thu, 24 Feb 2011 17:21:20 +0000 (+0100) Subject: fixed moosified-rs.t failures by making the test skip if not all dependencies are met X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=25f3140df07856bb1e2b05a2a3bf9322d8e80371;p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate fixed moosified-rs.t failures by making the test skip if not all dependencies are met --- diff --git a/Changes b/Changes index b6afc0c..3e0148c 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,9 @@ Revision history for DBIx::Class::ResultSet::RecursiveUpdate {{ $NEXT }} + - Fixed moosified-rs.t failures by making the test skip if not all + dependencies are met. Requiring Moose for a compatability test would + have been overkill. (thanks CPANTesters & RT#65959) 0.22 2011-02-09 19:06:34 Europe/Vienna - Fixed updating of nullable has_many rels (RT#65561) diff --git a/t/moosified-rs.t b/t/moosified-rs.t index f114010..cf3d942 100644 --- a/t/moosified-rs.t +++ b/t/moosified-rs.t @@ -2,6 +2,17 @@ use strict; use warnings; use Test::More; +BEGIN { + eval { + require Moose; + require MooseX::NonMoose; + require namespace::autoclean; + }; + plan skip_all => + "Moose, MooseX::NonMoose and namespace::autoclean required" + if $@; +} + use lib 't/lib'; use DBSchemaMoose; use RunTests;