X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_script_help.t;h=38eb5ead5859b2f3cde92f8897ac25aa9308ea9c;hb=fcfe92b170baa438adf1ff92057ac007781d02b4;hp=00d24da6ca8c50eece7c7c51f287624fb751e752;hpb=cd61f3ab24b7dcc59068c35d62ddb4bb9b9162c8;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_script_help.t b/t/aggregate/unit_core_script_help.t index 00d24da..38eb5ea 100644 --- a/t/aggregate/unit_core_script_help.t +++ b/t/aggregate/unit_core_script_help.t @@ -1,12 +1,14 @@ -#!/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"; +no warnings 'once'; +*CORE::GLOBAL::exit = sub {}; + { package TestHelpScript; use Moose; @@ -21,9 +23,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'; }