X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fcustom_exception_class_simple.t;h=27e451621223924c87f0fd0b67268164b799b0ca;hp=24983fa036e88463a7f948871dacae22f803c9af;hb=518b61984c49533ec00813125b16812cd681e778;hpb=41a8bf1f4e417f1439866c09c08a3998ae81528a diff --git a/t/custom_exception_class_simple.t b/t/custom_exception_class_simple.t index 24983fa..27e4516 100644 --- a/t/custom_exception_class_simple.t +++ b/t/custom_exception_class_simple.t @@ -1,20 +1,18 @@ -#!/usr/bin/env perl - use strict; use warnings; use FindBin qw/$Bin/; use lib "$Bin/lib"; use Test::More tests => 2; -use Test::Exception; +use Test::Fatal; -lives_ok { +is exception { require TestAppClassExceptionSimpleTest; -} 'Can load application'; +}, undef, 'Can load application'; -lives_ok { +is exception { Catalyst::Exception->throw -} 'throw is properly stubbed out'; +}, undef, 'throw is properly stubbed out';