As of v0.36, there is a hook to change this
[gitmo/MooseX-Getopt.git] / t / 112_configfile_constructor_arg.t
index 7b55a83..9465ede 100644 (file)
@@ -6,7 +6,9 @@ use Test::Requires
 
 # respect the configfile value passed into the constructor.
 
-use Test::More tests => 2;
+use Test::More tests => 3;
+use Test::NoWarnings 1.04 ':early';
+use Path::Class;    # exports file, dir
 
 {
     package Foo;
@@ -19,11 +21,8 @@ use Test::More tests => 2;
     );
 }
 
-TODO:
 {
-    local $TODO = "doh, this doesn't work!";
-
-    my $configfile = 't/112_configfile_constructor_arg.yml';
+    my $configfile = file(qw(t 112_configfile_constructor_arg.yml))->stringify;
 
     my $obj = Foo->new_with_options(configfile => $configfile);