From 25f3140df07856bb1e2b05a2a3bf9322d8e80371 Mon Sep 17 00:00:00 2001 From: Alexander Hartmaier Date: Thu, 24 Feb 2011 18:21:20 +0100 Subject: [PATCH] fixed moosified-rs.t failures by making the test skip if not all dependencies are met --- Changes | 3 +++ t/moosified-rs.t | 11 +++++++++++ 2 files changed, 14 insertions(+) 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; -- 2.43.0