From: Dave Rolsky Date: Sun, 21 Nov 2010 16:37:17 +0000 (-0600) Subject: Skip all failing tests with Moose 1.05+ X-Git-Tag: 0.05 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=gitmo%2FMoose-Policy.git Skip all failing tests with Moose 1.05+ --- diff --git a/Changes b/Changes index c414bb0..43c3375 100644 --- a/Changes +++ b/Changes @@ -2,7 +2,8 @@ Revision history for Perl extension Moose-Policy 0.05 Sun. Nov. 21, 2010 - This distribution has been deprecated for a long time. This release - makes it official. + makes it official. Note that this module no longer even passes its tests + with recent versions of Moose. 0.04 Sun. Nov. 29, 2009 - Fix a couple of POD typos. diff --git a/t/001_basic.t b/t/001_basic.t index 8554a7d..f83967a 100644 --- a/t/001_basic.t +++ b/t/001_basic.t @@ -3,9 +3,16 @@ use strict; use warnings; -use Test::More tests => 11; +use Test::More; BEGIN { + require Moose; + + plan skip_all => 'Moose::Policy does not work with recent versions of Moose' + if Moose->VERSION >= 1.05; + + plan tests => 11; + use_ok('Moose::Policy'); } diff --git a/t/003_saidso.t b/t/003_saidso.t index 1952e41..7cdd9d2 100644 --- a/t/003_saidso.t +++ b/t/003_saidso.t @@ -3,9 +3,16 @@ use strict; use warnings; -use Test::More tests => 22; +use Test::More; BEGIN { + require Moose; + + plan skip_all => 'Moose::Policy does not work with recent versions of Moose' + if Moose->VERSION >= 1.05; + + plan tests => 22; + use_ok('Moose::Policy'); } diff --git a/t/010_FollowPBP_test.t b/t/010_FollowPBP_test.t index d010167..097fa55 100644 --- a/t/010_FollowPBP_test.t +++ b/t/010_FollowPBP_test.t @@ -3,9 +3,16 @@ use strict; use warnings; -use Test::More tests => 28; +use Test::More; BEGIN { + require Moose; + + plan skip_all => 'Moose::Policy does not work with recent versions of Moose' + if Moose->VERSION >= 1.05; + + plan tests => 28; + use_ok('Moose::Policy'); } diff --git a/t/011_JavaAccessors_test.t b/t/011_JavaAccessors_test.t index 9f78cc0..9880ead 100644 --- a/t/011_JavaAccessors_test.t +++ b/t/011_JavaAccessors_test.t @@ -3,9 +3,16 @@ use strict; use warnings; -use Test::More tests => 11; +use Test::More; BEGIN { + require Moose; + + plan skip_all => 'Moose::Policy does not work with recent versions of Moose' + if Moose->VERSION >= 1.05; + + plan tests => 11; + use_ok('Moose::Policy'); } diff --git a/t/020_SingleInheritence_test.t b/t/020_SingleInheritence_test.t index ba69bd9..772f34d 100644 --- a/t/020_SingleInheritence_test.t +++ b/t/020_SingleInheritence_test.t @@ -3,10 +3,17 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::More; use Test::Exception; BEGIN { + require Moose; + + plan skip_all => 'Moose::Policy does not work with recent versions of Moose' + if Moose->VERSION >= 1.05; + + plan tests => 2; + use_ok('Moose::Policy'); }