4 use Test::Requires 'MooseX::SimpleConfig'; # skip all if not reuqired
5 use Test::More tests => 5;
6 use Test::NoWarnings 1.04 ':early';
8 use Path::Class 'file';
13 with 'MooseX::SimpleConfig';
14 sub get_config_from_file { }
18 my $obj = Generic->new(configfile => path('i/do/not_exist'));
19 is($obj->configfile, 'i/do/not_exist', 'stringification returns path');
20 isa_ok($obj->configfile, 'Path::Tiny');
24 my $obj = Generic->new(configfile => file('i/do/not_exist'));
25 is($obj->configfile, 'i/do/not_exist', 'stringification returns path');
26 isa_ok($obj->configfile, 'Path::Tiny');