2 use warnings FATAL => 'all';
8 use MooseX::Types::Path::Class;
12 isa => 'Path::Class::Dir',
19 isa => 'Path::Class::File',
26 with 'MooseX::Getopt';
27 use MooseX::Types::Path::Class qw( Dir File );
50 isa_ok( $o->dir, 'Path::Class::Dir' );
51 cmp_ok( $o->dir, 'eq', '/tmp', 'dir is /tmp' );
52 isa_ok( $o->file, 'Path::Class::File' );
53 cmp_ok( $o->file, 'eq', '/tmp/foo', 'file is /tmp/foo' );
56 for my $class (qw(Foo Bar)) {
59 $o = $class->new( dir => '/tmp', file => [ '', 'tmp', 'foo' ] );
68 $o = $class->new_with_options;