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=d3a6fabd8981d11760528214d1e596d4cdb03fd2;hp=2b6530a579588ca4d9bb1a798869cda2c3c1601a;hb=9c74923de2304b8c8f0a7a2faa0854ad9b4d3a92;hpb=d1fb4964131483996fda36e86c7fa29af99a2a92 diff --git a/t/aggregate/unit_core_script_help.t b/t/aggregate/unit_core_script_help.t index 2b6530a..d3a6fab 100644 --- a/t/aggregate/unit_core_script_help.t +++ b/t/aggregate/unit_core_script_help.t @@ -11,26 +11,20 @@ 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;