5 'MooseX::SimpleConfig'; # skip all if not installed
7 # respect the configfile value passed into the constructor.
9 use Test::More tests => 2;
10 use Path::Class; # exports file, dir
15 with 'MooseX::Getopt', 'MooseX::SimpleConfig';
18 is => 'ro', isa => 'Str',
19 default => 'foo default',
24 my $configfile = file(qw(t 112_configfile_constructor_arg.yml))->stringify;
26 my $obj = Foo->new_with_options(configfile => $configfile);
31 'configfile value is used from the constructor',
36 'value is read in from the config file',