From: Dave Rolsky Date: Fri, 29 Oct 2010 15:23:36 +0000 (-0500) Subject: Revert "convert all uses of Test::Exception to Test::Fatal." X-Git-Tag: v0.21~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d4e93624b4c9c91673a7b7961e365e1c0f921c29;p=gitmo%2FMooseX-ClassAttribute.git Revert "convert all uses of Test::Exception to Test::Fatal." This reverts commit e6b328144a37b7adda944f989e1c1b4299a98e3f. --- diff --git a/Changes b/Changes index 842196d..dd68948 100644 --- a/Changes +++ b/Changes @@ -1,8 +1,3 @@ - -NEXT - -- The test suite now uses Test::Fatal instead of Test::Exception. - 0.20 2010-10-07 - A test file tried to load MooseX::Role::Parameterized, which was not listed diff --git a/dist.ini b/dist.ini index 393f42d..c4c16a9 100644 --- a/dist.ini +++ b/dist.ini @@ -34,7 +34,7 @@ namespace::autoclean = 0 [Prereqs / TestRequires] Test::More = 0.88 -Test::Fatal = 0 +Test::Exception = 0 Scalar::Util = 0 Test::Requires = 0.05 diff --git a/t/07-parameterized-role.t b/t/07-parameterized-role.t index df6780d..9fb9588 100644 --- a/t/07-parameterized-role.t +++ b/t/07-parameterized-role.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More; -use Test::Fatal; +use Test::Exception; use Test::Requires { 'MooseX::Role::Parameterized' => '0', @@ -37,10 +37,10 @@ plan skip_all => my $instance = Class->new(); isa_ok( $instance, 'Class' ); -ok ! exception { +lives_and { $instance->foo('bar'); is( $instance->foo(), 'bar' ); -}, +} 'used class attribute from parameterized role'; done_testing(); diff --git a/t/08-role-composition.t b/t/08-role-composition.t index 81eeb44..a3bb0e9 100644 --- a/t/08-role-composition.t +++ b/t/08-role-composition.t @@ -2,6 +2,7 @@ use strict; use warnings; use Test::More; +use Test::Exception; { package Role;