5 'MooseX::SimpleConfig'; # skip all if not installed
7 # respect the configfile value passed into the constructor.
9 use Test::More tests => 3;
10 use Test::NoWarnings 1.04 ':early';
11 use Path::Class; # exports file, dir
16 with 'MooseX::Getopt', 'MooseX::SimpleConfig';
19 is => 'ro', isa => 'Str',
20 default => 'foo default',
25 my $configfile = file(qw(t 112_configfile_constructor_arg.yml))->stringify;
27 my $obj = Foo->new_with_options(configfile => $configfile);
32 'configfile value is used from the constructor',
37 'value is read in from the config file',