From: Karen Etheridge Date: Tue, 26 Oct 2010 17:32:17 +0000 (-0700) Subject: convert all uses of Test::Exception to Test::Fatal. X-Git-Tag: v0.10~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4739bf24d315ea94f1d391ce6459e24fa61cfba9;p=gitmo%2FPackage-DeprecationManager.git convert all uses of Test::Exception to Test::Fatal. --- diff --git a/Changes b/Changes index c592bad..ad85fc1 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,8 @@ + +NEXT + +- The test suite now uses Test::Fatal instead of Test::Exception. + 0.09 2010-10-17 - Added a compilation test, because otherwise all test files could not end up diff --git a/dist.ini b/dist.ini index a88de5d..2ebda3b 100644 --- a/dist.ini +++ b/dist.ini @@ -35,7 +35,7 @@ Params::Util = 0 Sub::Install = 0 [Prereqs / TestRequires] -Test::Exception = 0 +Test::Fatal = 0 Test::More = 0.88 Test::Requires = 0 diff --git a/t/basic.t b/t/basic.t index 90da5f9..0d8ecc0 100644 --- a/t/basic.t +++ b/t/basic.t @@ -1,18 +1,18 @@ use strict; use warnings; -use Test::Exception; use Test::More; +use Test::Fatal; use Test::Requires { 'Test::Output' => '0.16', }; { - throws_ok { + like exception { eval 'package Foo; use Package::DeprecationManager;'; die $@ if $@; - } + }, qr/^\QYou must provide a hash reference -deprecations parameter when importing Package::DeprecationManager/, 'must provide a set of deprecations when using Package::DeprecationManager'; }