X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Ferror_page_dump.t;h=6cec4238855db3e21dc0c7fc4c70bb245e90b25c;hb=efc1a69b1e03a40bc721aa745846d45f855b9511;hp=099f8dab638bb09392aa1d2e210d22f54d73d628;hpb=1565e158ff4a868e199a99b779e6669ca1d9c53c;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/error_page_dump.t b/t/aggregate/error_page_dump.t index 099f8da..6cec423 100644 --- a/t/aggregate/error_page_dump.t +++ b/t/aggregate/error_page_dump.t @@ -1,15 +1,15 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal; use Catalyst::Engine; my $m = sub { Catalyst::Engine->_dump_error_page_element(@_) }; -lives_ok { $m->('Scalar' => ['foo' => 'bar']) }; -lives_ok { $m->('Array' => ['foo' => []]) }; -lives_ok { $m->('Hash' => ['foo' => {}]) }; +is exception { $m->('Scalar' => ['foo' => 'bar']) }, undef; +is exception { $m->('Array' => ['foo' => []]) }, undef; +is exception { $m->('Hash' => ['foo' => {}]) }, undef; done_testing;