4 use Test::More tests => 5;
5 use Test::NoWarnings 1.04 ':early';
7 use Path::Class 'file';
12 with 'MooseX::SimpleConfig';
13 sub get_config_from_file { }
17 my $obj = Generic->new(configfile => path('i/do/not_exist'));
18 is($obj->configfile, 'i/do/not_exist', 'stringification returns path');
19 isa_ok($obj->configfile, 'Path::Tiny');
23 my $obj = Generic->new(configfile => file('i/do/not_exist'));
24 is($obj->configfile, 'i/do/not_exist', 'stringification returns path');
25 isa_ok($obj->configfile, 'Path::Tiny');