From: Karen Etheridge Date: Sat, 20 Nov 2010 01:19:54 +0000 (-0800) Subject: convert all uses of Test::Exception to Test::Fatal. X-Git-Tag: 0.03~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ccaae6cd360d4f063ef369d02e9b3d06ca4ee0c;p=gitmo%2FMooseX-ConfigFromFile.git convert all uses of Test::Exception to Test::Fatal. --- diff --git a/ChangeLog b/ChangeLog index c6f6c2b..38303a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ Revision history for Perl extension MooseX::ConfigFromFile 0.03 - ??? + - The test suite now uses Test::Fatal instead of Test::Exception (Karen + Etheridge). - Fix bug reported by Strayph in #moose with inheritance (perigrin) 0.02 - Jan 23, 2008 diff --git a/Makefile.PL b/Makefile.PL index 0943b67..7d037bc 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,6 +5,7 @@ name 'MooseX-ConfigFromFile'; all_from 'lib/MooseX/ConfigFromFile.pm'; test_requires 'Test::More' => '0.42'; +test_requires 'Test::Fatal'; requires 'Moose' => '0.35'; requires 'MooseX::Types::Path::Class' => '0.04'; diff --git a/t/02subclass.t b/t/02subclass.t index fec2590..9cf24a8 100644 --- a/t/02subclass.t +++ b/t/02subclass.t @@ -1,7 +1,7 @@ #!/usr/bin/env perl use strict; use Test::More; -use Test::Exception; +use Test::Fatal; { package A; use Moose; @@ -17,6 +17,6 @@ use Test::Exception; } ok(B->does('MooseX::ConfigFromFile'), 'B does ConfigFromFile'); -lives_ok { B->new_with_config() } 'B->new_with_config lives'; +is(exception { B->new_with_config() }, undef, 'B->new_with_config lives'); done_testing();