Revision history for Perl extension MooseX-Getopt
+ * Fix tests when MooseX::ConfigFromFile is installed, with
+ Getopt::Long::Descriptive >= 0.091. RT#76287
* Pod fix from debian. Salvatore Bonaccorso <carnil@debian.org> RT#74681
* Spelling fix from debian. Jonathan Yu <jawnsy@cpan.org> RT#74681
{
local @ARGV = qw( --required_from_argv 1 );
- like exception { App->new_with_options }, qr/Required option missing: required_from_config/;
+ if ($Getopt::Long::Descriptive::VERSION >= 0.091) {
+ like exception { App->new_with_options }, qr/Mandatory parameter 'required_from_config' missing/;
+ }
+ else {
+ like exception { App->new_with_options }, qr/Required option missing: required_from_config/;
+ }
{
my $app = App::DefaultConfigFile->new_with_options;
# Required arg not supplied from cmdline
{
local @ARGV = qw( --configfile /notused );
- like exception { App->new_with_options }, qr/Required option missing: required_from_argv/;
+ if ($Getopt::Long::Descriptive::VERSION >= 0.091) {
+ like exception { App->new_with_options }, qr/Mandatory parameter 'required_from_argv' missing/;
+ }
+ else {
+ like exception { App->new_with_options }, qr/Required option missing: required_from_argv/;
+ }
}
# Config file value overriden from cmdline