Skip to content

Commit

Permalink
Merge pull request #1 from mjgardner/copied
Browse files Browse the repository at this point in the history
fix configfromfile test to use new Getopt::Long::Descriptive text
  • Loading branch information
gfx committed Mar 21, 2012
2 parents 4f707ce + aa268f6 commit d7d750e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist.ini
Expand Up @@ -12,6 +12,7 @@ author = Florian Ragwitz <rafl@debian.org>
author = Dagfinn Ilmari Mannsaker <ilmari@ilmari.org>
author = Avar Arnfjord Bjarmason <avar@cpan.org>
author = Chris Prather <perigrin@cpan.org>
author = Mark Gardner <mjgardner@cpan.org>
license = Perl_5
copyright_holder = Infinity Interactive, Inc

Expand All @@ -24,7 +25,7 @@ auto_prereq = 0

[Prereq]
Getopt::Long = 2.37
Getopt::Long::Descriptive = 0.081
Getopt::Long::Descriptive = 0.091
Mouse = 0.64

[Prereq / TestRequires]
Expand Down
4 changes: 2 additions & 2 deletions t/008_configfromfile.t
Expand Up @@ -91,7 +91,7 @@ else
{
local @ARGV = qw( --required_from_argv 1 );

throws_ok { App->new_with_options } qr/Required option missing: required_from_config/;
throws_ok { App->new_with_options } qr/Mandatory parameter 'required_from_config' missing/;

{
my $app = App::DefaultConfigFile->new_with_options;
Expand Down Expand Up @@ -160,7 +160,7 @@ else
# Required arg not supplied from cmdline
{
local @ARGV = qw( --configfile /notused );
throws_ok { App->new_with_options } qr/Required option missing: required_from_argv/;
throws_ok { App->new_with_options } qr/Mandatory parameter 'required_from_argv' missing/;
}

# Config file value overriden from cmdline
Expand Down

0 comments on commit d7d750e

Please sign in to comment.