X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fget_sharedir_file.t;h=221e939dce5809f2a1db149f6f081b9bd8f2b8ab;hb=bc750d3b259bace9fb67c9afd8cd8be585d04c26;hp=f2a68add070d4546a7460f15c5040b59ef5556d4;hpb=df7bca1d7570f88a9b68a4b8bff7dcaacb97d82f;p=catagits%2FCatalyst-Devel.git diff --git a/t/get_sharedir_file.t b/t/get_sharedir_file.t index f2a68ad..221e939 100644 --- a/t/get_sharedir_file.t +++ b/t/get_sharedir_file.t @@ -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;