Fix RT#65907: missing build require: Test::Exception
Tomas Doran [Tue, 22 Mar 2011 09:15:22 +0000 (09:15 +0000)]
Changes
Makefile.PL
t/get_sharedir_file.t

diff --git a/Changes b/Changes
index 50bfc40..ca0c788 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 This file documents the revision history for Perl extension Catalyst-Devel.
 
+        - Fix RT#65907: missing build require: Test::Exception
+
 1.31 2011-01-20 01:08:00
         - Fix for copying generated files into installed apps + tests
           to ensure it keeps working. abraxxa++
index 14d3b08..c7ddfa5 100644 (file)
@@ -34,6 +34,7 @@ author_requires 'Module::Info';
 author_requires 'File::Find::Rule';
 
 test_requires 'Test::More' => '0.94';
+test_requires 'Test::Fatal' => '0.003';
 
 install_share 'share';
 
index f2a68ad..221e939 100644 (file)
@@ -1,20 +1,20 @@
 use strict;
 use warnings;
 
-use Test::More;
-use Test::Exception;
+use Test::More 0.88;
+use Test::Fatal;
 
 use Catalyst::Helper;
 
 my $i = bless {}, 'Catalyst::Helper';
 
-throws_ok {
+like exception {
     $i->get_sharedir_file(qw/does not exist and hopefully never will or we are
         totally screwed.txt/);
-} qr/Cannot find/, 'Exception for file not found from ->get_sharedir_file';
+}, qr/Cannot find/, 'Exception for file not found from ->get_sharedir_file';
 
-lives_ok {
+is exception {
     ok($i->get_sharedir_file('Makefile.PL.tt'), 'has contents');
-} 'Can get_sharedir_file';
+}, undef, 'Can get_sharedir_file';
 
 done_testing;