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=084ea1121f1dbf43511ce14d977bab61b20064ab;hp=24983fa036e88463a7f948871dacae22f803c9af;hb=804143deca6f2bebfc87cc78cf397201b6028bc5;hpb=41a8bf1f4e417f1439866c09c08a3998ae81528a diff --git a/t/custom_exception_class_simple.t b/t/custom_exception_class_simple.t index 24983fa..084ea11 100644 --- a/t/custom_exception_class_simple.t +++ b/t/custom_exception_class_simple.t @@ -1,20 +1,19 @@ -#!/usr/bin/env perl - +# HARNESS-NO-PRELOAD 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';