2 use warnings FATAL => 'all';
4 use Test::Requires 'MooseX::Getopt'; # skip all if not installed
5 use Test::More tests => 3;
6 use Test::NoWarnings 1.04 ':early';
12 with qw(MooseX::Getopt MooseX::ConfigFromFile);
13 sub get_config_from_file { }
17 package Foo::NoOptions;
20 with qw(MooseX::ConfigFromFile);
21 sub get_config_from_file { }
25 Foo::Options->meta->find_attribute_by_name('configfile')->does('MooseX::Getopt::Meta::Attribute::Trait'),
26 'classes with MooseX::Getopt have the Getopt attr trait added',
30 Foo::NoOptions->meta->find_attribute_by_name('configfile')->does('MooseX::Getopt::Meta::Attribute::Trait'),
31 'when MooseX::Getopt is loaded, the Getopt attr trait is still added',