X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_script_help.t;h=d3a6fabd8981d11760528214d1e596d4cdb03fd2;hb=d5a8ec3cc9d3b850be74eccb609aaf055d3c4e4c;hp=26a3a9273dda41cf0ceb011b4db71b0ea7d56674;hpb=fb533ac365537bec8a9872c114127eec48834a06;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_script_help.t b/t/aggregate/unit_core_script_help.t index 26a3a92..d3a6fab 100644 --- a/t/aggregate/unit_core_script_help.t +++ b/t/aggregate/unit_core_script_help.t @@ -12,24 +12,19 @@ use lib "$Bin/../lib"; use Moose; with 'Catalyst::ScriptRole'; our $help; - sub _exit_with_usage { $help++ } + sub _getopt_full_usage { $help++ } } -test('-h'); test('--help'); - -TODO: { - local $TODO = 'This is bork'; - test('-?'); -} +test('-?'); sub test { local $TestHelpScript::help; local @ARGV = (@_); lives_ok { TestHelpScript->new_with_options(application_name => 'TestAppToTestScripts')->run; - }; - ok $TestHelpScript::help; + } 'Lives'; + ok $TestHelpScript::help, 'Got help'; } done_testing;