X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Funit_core_script_help.t;h=e2fc4a2bcfb1d2298584078529506c0ab12e14aa;hp=00d24da6ca8c50eece7c7c51f287624fb751e752;hb=82010ea176741c7a4f2baf3f6f27377b1d9f6b15;hpb=8ba2999969105bb9079e0c42473d88e4b73e079a diff --git a/t/aggregate/unit_core_script_help.t b/t/aggregate/unit_core_script_help.t index 00d24da..e2fc4a2 100644 --- a/t/aggregate/unit_core_script_help.t +++ b/t/aggregate/unit_core_script_help.t @@ -1,8 +1,7 @@ -#!/usr/bin/env perl use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal; use FindBin qw/$Bin/; use lib "$Bin/../lib"; @@ -21,9 +20,9 @@ test('-?'); sub test { local $TestHelpScript::help; local @ARGV = (@_); - lives_ok { + is exception { TestHelpScript->new_with_options(application_name => 'TestAppToTestScripts')->run; - } 'Lives'; + }, undef, 'Lives'; ok $TestHelpScript::help, 'Got help'; }