Permalink
Browse files

Merge pull request #1 from mjgardner/copied

fix configfromfile test to use new Getopt::Long::Descriptive text
  • Loading branch information...
2 parents 4f707ce + aa268f6 commit d7d750e35ea6d03ffbb8b4903796efd0a0d39ff5 @gfx committed Mar 21, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −1 dist.ini
  2. +2 −2 t/008_configfromfile.t
View
3 dist.ini
@@ -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
@@ -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]
View
4 t/008_configfromfile.t
@@ -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;
@@ -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

0 comments on commit d7d750e

Please sign in to comment.