Skip to content

Commit

Permalink
removed timestamp from Changelog; added additional test to swallow st…
Browse files Browse the repository at this point in the history
…derr output (and updated dependency list)
  • Loading branch information
karenetheridge committed Jun 27, 2010
1 parent ea8725f commit 84a5831
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Revision history for Perl extension MooseX-Getopt
- Disable auto_help config in Getopt::Long, to avoid calling into
pod2usage when the --help option is used while MooseX::ConfigFromFile
is in use (the intent is just to fetch the value of the configfile
option). (RT#57683)
option). (RT#57683) (Karen Etheridge)

0.29 Tue. Jun 15 2010
* Fix repository metadata. Thanks Robert Bohne for noticing!
Expand Down
1 change: 1 addition & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Moose = 0.56

[Prereq / TestRequires]
Test::Exception = 0.21
Test::Warn = 0.21
Test::More = 0.88
13 changes: 11 additions & 2 deletions t/107_no_auto_help.t
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ my $fail_on_exit = 1;
1;
}

use Test::More tests => 1;
use Test::More tests => 3;
use Test::Warn;
use Test::Exception;

END {
ok(!$fail_on_exit, 'getoptions() lives');
Expand All @@ -50,5 +52,12 @@ END {


@ARGV = ('--help');
Class->new_with_options;

warning_like {
throws_ok { Class->new_with_options }
qr/^usage: [\d\w]+\Q.t [long options...]\E.\t--configfile\s*.\t--help/ms,
'usage information looks good';
}
qr/^Specified configfile \'this_value_unimportant\' does not exist, is empty, or is not readable$/,
'Our dummy config file doesn\'t exist';

0 comments on commit 84a5831

Please sign in to comment.