X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F112_configfile_constructor_arg.t;h=2435cfc9f8ecbc26be1ea28ea34791dfec604908;hp=68455b9e4268f45b1c3a0f53443dc6c04ff260d7;hb=e202fd48ff22367bb28fd3aef438a301aa3e87a9;hpb=6522bce9db4da59a483ebac15db58d85d90f2f64 diff --git a/t/112_configfile_constructor_arg.t b/t/112_configfile_constructor_arg.t index 68455b9..2435cfc 100644 --- a/t/112_configfile_constructor_arg.t +++ b/t/112_configfile_constructor_arg.t @@ -6,7 +6,7 @@ use warnings; use Test::Requires 'MooseX::SimpleConfig'; # skip all if not installed use Test::More tests => 3; use Test::NoWarnings 1.04 ':early'; -use Path::Class; # exports file, dir +use Path::Tiny; # avoid warning if all we have installed is YAML or YAML::Syck - the user will # see this eventually when he actually uses MooseX::SimpleConfig in his own @@ -26,7 +26,7 @@ $Config::Any::YAML::NO_YAML_XS_WARNING = 1; } { - my $configfile = file(qw(t 112_configfile_constructor_arg.yml))->stringify; + my $configfile = path(qw(t 112_configfile_constructor_arg.yml))->stringify; my $obj = Foo->new_with_options(configfile => $configfile);