X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F008_configfromfile.t;h=ed742e26be194da78d02660631d5ca8148d52cf7;hb=9bcb580d6faef385befee844bdfc2a0bd2d337f8;hp=5d3b03d83ba605495f4b85622e2ac2475cca1c43;hpb=f085ee4d571b470f4dc4874dfaae7f2f542d6eba;p=gitmo%2FMooseX-Getopt.git diff --git a/t/008_configfromfile.t b/t/008_configfromfile.t index 5d3b03d..ed742e2 100644 --- a/t/008_configfromfile.t +++ b/t/008_configfromfile.t @@ -1,7 +1,7 @@ use strict; -use warnings; +use warnings FATAL => 'all'; -use Test::Requires { 'MooseX::ConfigFromFile' => '0.06' }; # skip all if not installed +use Test::Requires 'MooseX::ConfigFromFile'; # skip all if not installed use Test::More tests => 56; use Test::Fatal; use Test::Deep '!blessed'; @@ -83,7 +83,7 @@ my %constructor_args; extends 'App'; has '+configfile' => ( - default => sub { return Path::Tiny::path('/notused/default') }, + default => sub { return Path::Tiny::path('/notused/default')->stringify }, ); } @@ -114,7 +114,7 @@ my %constructor_args; ok( !$app->config_from_override, '... config_from_override false as expected' ); - is( $app->configfile, path('/notused/default'), + is( path($app->configfile), path('/notused/default'), '... configfile is /notused/default as expected' ); cmp_deeply( @@ -134,7 +134,7 @@ my %constructor_args; ok( !$app->config_from_override, '... config_from_override false as expected' ); - is( $app->configfile, path('/notused/default'), + is( path($app->configfile), path('/notused/default'), '... configfile is /notused/default as expected' ); cmp_deeply( @@ -189,7 +189,7 @@ my %constructor_args; ok( $app->config_from_override, '... config_from_override true as expected' ); - is( $app->configfile, path('/notused/override'), + is( path($app->configfile), path('/notused/override'), '... configfile is /notused/override as expected' ); cmp_deeply( @@ -208,7 +208,7 @@ my %constructor_args; ok( $app->config_from_override, '... config_from_override true as expected' ); - is( $app->configfile, path('/notused/override'), + is( path($app->configfile), path('/notused/override'), '... configfile is /notused/override as expected' ); cmp_deeply( @@ -227,7 +227,7 @@ my %constructor_args; ok( $app->config_from_override, '... config_from_override true as expected' ); - is( $app->configfile, path('/notused/override'), + is( path($app->configfile), path('/notused/override'), '... configfile is /notused as expected' ); cmp_deeply(