From: Karen Etheridge Date: Tue, 26 Oct 2010 17:48:14 +0000 (-0700) Subject: convert all uses of Test::Exception to Test::Fatal. X-Git-Tag: v0.21~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e6b328144a37b7adda944f989e1c1b4299a98e3f;p=gitmo%2FMooseX-ClassAttribute.git convert all uses of Test::Exception to Test::Fatal. --- diff --git a/Changes b/Changes index dd68948..842196d 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,8 @@ + +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 c4c16a9..393f42d 100644 --- a/dist.ini +++ b/dist.ini @@ -34,7 +34,7 @@ namespace::autoclean = 0 [Prereqs / TestRequires] Test::More = 0.88 -Test::Exception = 0 +Test::Fatal = 0 Scalar::Util = 0 Test::Requires = 0.05 diff --git a/t/07-parameterized-role.t b/t/07-parameterized-role.t index 9fb9588..df6780d 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::Exception; +use Test::Fatal; use Test::Requires { 'MooseX::Role::Parameterized' => '0', @@ -37,10 +37,10 @@ plan skip_all => my $instance = Class->new(); isa_ok( $instance, 'Class' ); -lives_and { +ok ! exception { $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 a3bb0e9..81eeb44 100644 --- a/t/08-role-composition.t +++ b/t/08-role-composition.t @@ -2,7 +2,6 @@ use strict; use warnings; use Test::More; -use Test::Exception; { package Role;