X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_script_help.t;fp=t%2Faggregate%2Funit_core_script_help.t;h=0287990d338f5b5a04d068bd415cd60e83990b09;hb=3a8c155fa0077e949f68f29fbe4b835d5484a2c9;hp=2b6530a579588ca4d9bb1a798869cda2c3c1601a;hpb=2b8d5598d6da39d06250d3dac182d5b0e4684384;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_script_help.t b/t/aggregate/unit_core_script_help.t index 2b6530a..0287990 100644 --- a/t/aggregate/unit_core_script_help.t +++ b/t/aggregate/unit_core_script_help.t @@ -11,26 +11,21 @@ use lib "$Bin/../lib"; package TestHelpScript; use Moose; with 'Catalyst::ScriptRole'; - __PACKAGE__->meta->get_attribute('help')->cmd_aliases('h'); 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;